diff --git a/Dockerfile b/Dockerfile index cd57204..52e9e67 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18 +FROM node:20 ENV NODE_ENV=production WORKDIR /srv/app @@ -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 ./ ./ @@ -22,4 +22,4 @@ RUN pnpm build # Prunes devDependencies RUN pnpm install --production --ignore-scripts --prefer-offline -CMD pnpm start \ No newline at end of file +CMD pnpm start