We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66201f commit a983067Copy full SHA for a983067
docker/Dockerfile
@@ -1,28 +1,22 @@
1
-FROM node:23.1.0 AS build
+FROM node:23.10.0 AS build
2
3
WORKDIR /app
4
5
-COPY .yarnrc.yml .
6
-COPY .yarn ./.yarn
7
-
8
-COPY package.json yarn.lock ./
+COPY .yarnrc.yml .yarn package.json yarn.lock ./
9
RUN yarn install --immutable
10
11
COPY . .
12
RUN yarn build
13
14
15
-FROM nginx:stable AS prod
16
17
-WORKDIR /usr/share/nginx/html
+FROM nginx:stable-alpine AS prod
18
19
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
20
-COPY --from=build /app/dist .
+COPY --from=build /app/dist /usr/share/nginx/html
21
22
COPY ./docker/entrypoint.sh /entrypoint.sh
23
RUN chmod +x /entrypoint.sh
24
25
-EXPOSE 3000
26
27
ENTRYPOINT ["/entrypoint.sh"]
28
CMD ["nginx", "-g", "daemon off;"]
+EXPOSE 3000
0 commit comments