Pinned pnpm for builds

This commit is contained in:
Nicolai Ort 2023-02-02 10:18:08 +01:00
parent 0e78951300
commit 4570845b3e
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 3 additions and 3 deletions

View File

@ -2,14 +2,14 @@
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.16
WORKDIR /app
COPY package.json ./
RUN npx pnpm i
RUN npx pnpm@7.26.3 i
COPY tsconfig.json ormconfig.js ./
COPY src ./src
RUN pnpm run build
RUN npm run build
# final image
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.16
COPY package.json ormconfig.js ./
RUN npx pnpm i --prod
RUN npx pnpm@7.26.3 i --prod
COPY --from=0 /app/dist dist
ENTRYPOINT ["node", "dist/app.js"]