Skip to content

Commit

Permalink
Use "npm ci" on docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Aug 5, 2024
1 parent 4938977 commit 9f6de99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /usr/src/app
COPY . .

RUN --mount=type=cache,target=/root/.npm \
npm install && npm run build
npm ci && npm run build

# Stage 2: Create the final image without source files
FROM ghcr.io/ticketz-oss/node
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY . .
ENV NODE_OPTIONS --openssl-legacy-provider

RUN --mount=type=cache,target=/root/.npm \
npm install && npm run build
npm ci && npm run build

FROM ghcr.io/ticketz-oss/nginx-alpine

Expand Down

0 comments on commit 9f6de99

Please sign in to comment.