Skip to content

Commit

Permalink
feature: upgrade node version to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Samox committed Mar 16, 2023
1 parent 41cb6b8 commit bb47256
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# syntax=docker/dockerfile:1
FROM --platform=linux/amd64 node:16.18.0-alpine as builder
FROM --platform=linux/amd64 node:18.15.0-alpine as builder
RUN apk add --update --no-cache openssl1.1-compat
USER node
WORKDIR /tmp/build/app

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

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

Expand All @@ -23,7 +24,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.18.0-alpine
FROM --platform=linux/amd64 node:18.15.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 bb47256

Please sign in to comment.