Skip to content

Commit

Permalink
fix: use node alpine 16.18.0 to fix prisma build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Samox committed Mar 16, 2023
1 parent b588a24 commit 136516a
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,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM --platform=linux/amd64 node:16-alpine as builder
FROM --platform=linux/amd64 node:16.18.0-alpine as builder
USER node
WORKDIR /tmp/build/app

Expand All @@ -13,7 +13,7 @@ COPY --chown=node:node tsconfig.build.json ./
COPY --chown=node:node src ./src
RUN yarn build

FROM --platform=linux/amd64 node:16-alpine as ts-node-module-prod
FROM --platform=linux/amd64 node:16.18.0-alpine as ts-node-module-prod
USER node
WORKDIR /usr/src/app

Expand All @@ -23,7 +23,7 @@ RUN yarn install --frozen-lockfile --production
COPY --chown=node:node --from=builder /tmp/build/app/node_modules/@prisma ./node_modules/@prisma
COPY --chown=node:node --from=builder /tmp/build/app/node_modules/.prisma ./node_modules/.prisma

FROM --platform=linux/amd64 node:16-alpine
FROM --platform=linux/amd64 node:16.18.0-alpine
USER node
WORKDIR /usr/src/app
COPY --chown=node:node --from=builder /tmp/build/app/package.json ./
Expand Down

0 comments on commit 136516a

Please sign in to comment.