File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 11# Stage 1: build the application
2- FROM nginx:alpine AS build
2+ FROM node:19 as build-app
3+ WORKDIR /app
4+ COPY . .
5+ RUN npm i
6+ RUN npm run build
7+
8+ # Stage 2: Build nginx
9+ FROM nginx:alpine AS build-nginx
10+ WORKDIR /usr/share/nginx/html/
11+ COPY --from=build-app /app/public /usr/share/nginx/html/
312RUN rm -rf /etc/nginx/conf.d/*
413COPY nginx.conf /etc/nginx/
5- COPY public /usr/share/nginx/html/
614EXPOSE 80
715
816# Stage 2: final image
917FROM alpine:latest
1018RUN apk add --no-cache nginx && mkdir -p /run/nginx
11- COPY --from=build /usr/share/nginx/html/ /usr/share/nginx/html/
12- COPY --from=build /etc/nginx/nginx.conf /etc/nginx/nginx.conf
19+ COPY --from=build-nginx /usr/share/nginx/html/ /usr/share/nginx/html/
20+ COPY --from=build-nginx /etc/nginx/nginx.conf /etc/nginx/nginx.conf
1321EXPOSE 80
1422HEALTHCHECK --interval=1s --timeout=3s CMD wget -q -O - http://localhost:80 || exit 1
1523CMD ["nginx" , "-g" , "daemon off;" ]
Original file line number Diff line number Diff line change 4444 "hexo-server" : " ^2.0.0" ,
4545 "markdown-it-abbr" : " ^1.0.4" ,
4646 "markdown-it-anchor" : " ^8.4.1" ,
47- "markdown-it-attrs" : " ^4.1.0 " ,
47+ "markdown-it-attrs" : " ^4.3.1 " ,
4848 "markdown-it-checkbox" : " ^1.1.0" ,
4949 "markdown-it-emoji" : " ^2.0.0" ,
5050 "markdown-it-footnote" : " ^3.0.3" ,
You can’t perform that action at this time.
0 commit comments