Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 authored Nov 28, 2023
1 parent 962ab82 commit b374698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16
FROM node:20

ENV NODE_ENV=production

Expand All @@ -19,7 +19,7 @@ USER node
# Node has the uid 1000
COPY --chown=node:node package.json pnpm-lock.yaml ./

RUN pnpm install --frozen-lockfile
RUN pnpm install --frozen-lockfile --production=false

COPY --chown=node:node ./ ./

Expand All @@ -29,4 +29,4 @@ RUN pnpm build
# Prunes devDependencies
RUN pnpm install --production --ignore-scripts --prefer-offline

CMD pnpm start
CMD pnpm start

0 comments on commit b374698

Please sign in to comment.