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 c025070 commit 2700c5a
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:18
FROM node:20

ENV NODE_ENV=production
WORKDIR /srv/app
Expand All @@ -12,7 +12,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 @@ -22,4 +22,4 @@ RUN pnpm build
# Prunes devDependencies
RUN pnpm install --production --ignore-scripts --prefer-offline

CMD pnpm start
CMD pnpm start

0 comments on commit 2700c5a

Please sign in to comment.