Skip to content

Commit dd153d4

Browse files
committed
chore: update dockerfile
1 parent 94217e9 commit dd153d4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
FROM node:20-alpine3.18 as base
1+
FROM node:lts-bookworm-slim AS base
22

3-
RUN apk --no-cache add curl
43
RUN npm install -g corepack@latest
54
RUN corepack enable
65

76
# All deps stage
8-
FROM base as deps
7+
FROM base AS deps
98
WORKDIR /app
109
ADD package.json pnpm-lock.yaml ./
1110
RUN pnpm install
1211

1312
# Production only deps stage
14-
FROM base as production-deps
13+
FROM base AS production-deps
1514
WORKDIR /app
1615
ADD package.json pnpm-lock.yaml ./
1716
RUN pnpm install --prod
1817

1918
# Build stage
20-
FROM base as build
19+
FROM base AS build
2120
WORKDIR /app
2221
COPY --from=deps /app/node_modules /app/node_modules
2322
ADD . .

0 commit comments

Comments
 (0)