Skip to content

Commit a983067

Browse files
committed
[DOP-25355] Use nginx-alpine image
1 parent b66201f commit a983067

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

docker/Dockerfile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
1-
FROM node:23.1.0 AS build
1+
FROM node:23.10.0 AS build
22

33
WORKDIR /app
44

5-
COPY .yarnrc.yml .
6-
COPY .yarn ./.yarn
7-
8-
COPY package.json yarn.lock ./
5+
COPY .yarnrc.yml .yarn package.json yarn.lock ./
96
RUN yarn install --immutable
107

118
COPY . .
129
RUN yarn build
1310

1411

15-
FROM nginx:stable AS prod
16-
17-
WORKDIR /usr/share/nginx/html
12+
FROM nginx:stable-alpine AS prod
1813

1914
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
20-
COPY --from=build /app/dist .
15+
COPY --from=build /app/dist /usr/share/nginx/html
2116

2217
COPY ./docker/entrypoint.sh /entrypoint.sh
2318
RUN chmod +x /entrypoint.sh
2419

25-
EXPOSE 3000
26-
2720
ENTRYPOINT ["/entrypoint.sh"]
2821
CMD ["nginx", "-g", "daemon off;"]
22+
EXPOSE 3000

0 commit comments

Comments
 (0)