Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dockerfiles/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /opt/app
COPY package.json package.json
COPY package-lock.json package-lock.json

RUN npm install --legacy-peer-deps
RUN npm cache clean --force && npm install --legacy-peer-deps --verbose

COPY . .

Expand Down
10 changes: 5 additions & 5 deletions dockerfiles/tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ RUN npm install && chmod +x run-tests.sh

COPY ./tests/cypress cypress

ENV NPM_RUN_COMMAND=${NPM_RUN_COMMAND:-'test:headless'}
ENV CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'}
ARG NPM_RUN_COMMAND=test:headless
ARG CYPRESS_BASE_URL=http://localhost:3001
ENV NPM_RUN_COMMAND=${NPM_RUN_COMMAND}
ENV CYPRESS_BASE_URL=${CYPRESS_BASE_URL}

# Ignore the list notation for the ENTRYPOINT instruction
# hadolint ignore=DL3025
ENTRYPOINT npm run ${NPM_RUN_COMMAND}
ENTRYPOINT ["sh", "-c", "npm run ${NPM_RUN_COMMAND}"]
Loading