Skip to content

Commit

Permalink
πŸ³βœ…πŸŽ‰πŸ³βœ…πŸŽ‰
Browse files Browse the repository at this point in the history
  • Loading branch information
BretFisher committed Oct 4, 2023
1 parent e1168ad commit 17c09f5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion dockerfiles/1.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ WORKDIR /app
COPY --chown=node:node package*.json ./

# use ci to only install packages from lock files
RUN npm ci && npm cache clean --force
RUN npm ci --omit=dev && npm cache clean --force

# copy files with correct permissions
COPY --chown=node:node . .
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/2.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WORKDIR /app

COPY --chown=node:node package*.json ./

RUN npm ci && npm cache clean --force
RUN npm ci --omit=dev && npm cache clean --force

COPY --chown=node:node . .

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/3.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ EXPOSE 3000
USER node
WORKDIR /app
COPY --chown=node:node package*.json ./
RUN npm ci && npm cache clean --force
RUN npm ci --omit=dev && npm cache clean --force
ENV PATH=/app/node_modules/.bin:$PATH

# dev stage
Expand Down

0 comments on commit 17c09f5

Please sign in to comment.