Skip to content

Commit d228397

Browse files
Fix docker image (#7)
* Fix docker image nodejs/docker-node#2175 * Fix Docker image
1 parent c984f56 commit d228397

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Stage 1: Build the React app
2-
FROM node:20-alpine AS client-builder
2+
FROM node:20-alpine3.20 AS client-builder
33
WORKDIR /app
44
COPY client/package.json client/yarn.lock ./
55
RUN yarn install
66
COPY client ./
77
RUN yarn build
88

99
# Stage 2: Build the NestJS server
10-
FROM node:20-alpine AS server-builder
10+
FROM node:20-alpine3.20 AS server-builder
1111
WORKDIR /app
1212
COPY server/package.json server/yarn.lock ./
1313
RUN yarn install
@@ -16,7 +16,7 @@ RUN npx prisma generate
1616
RUN yarn build
1717

1818
# Stage 3: Production container
19-
FROM node:20-alpine
19+
FROM node:20-alpine3.20
2020
WORKDIR /app
2121

2222
# Fix https://github.com/nodejs/docker-node/issues/2175

0 commit comments

Comments
 (0)