Skip to content

Commit f8bf68e

Browse files
committed
chore: update dockerfile
1 parent 11f2474 commit f8bf68e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22

33
# ---- Builder ----
4-
FROM --platform=$BUILDPLATFORM node:18-alpine3.16 AS builder
4+
FROM --platform=$BUILDPLATFORM node:18.20.5-alpine3.20 AS builder
55

66
RUN mkdir /build
77
WORKDIR /build
@@ -10,18 +10,18 @@ COPY package.json .
1010
COPY pnpm-lock.yaml .
1111

1212
RUN apk add --update --no-cache git
13-
RUN npm install -g pnpm@8
13+
RUN npm install -g pnpm@9
1414

1515
RUN pnpm install --frozen-lockfile
1616

1717
COPY . .
1818
RUN pnpm run build
1919

2020
# ---- Dependencies ----
21-
FROM --platform=$BUILDPLATFORM node:18-alpine3.16 AS deps
21+
FROM --platform=$BUILDPLATFORM node:18.20.5-alpine3.20 AS deps
2222

2323
RUN apk add --update --no-cache dumb-init git
24-
RUN npm install -g pnpm@8
24+
RUN npm install -g pnpm@9
2525

2626
WORKDIR /deps
2727

@@ -30,10 +30,10 @@ COPY pnpm-lock.yaml .
3030
RUN pnpm install --frozen-lockfile --prod --no-optional
3131

3232
# ---- Runner ----
33-
FROM --platform=$BUILDPLATFORM node:18-alpine3.16
33+
FROM --platform=$BUILDPLATFORM node:18.20.5-alpine3.20
3434

3535
RUN apk add --update --no-cache dumb-init git
36-
RUN npm install -g pnpm@8
36+
RUN npm install -g pnpm@9
3737

3838
WORKDIR /app
3939

0 commit comments

Comments
 (0)