build: update nodejs ver and use nginx-stable

main
CrimsonTome 2023-02-13 19:29:12 +00:00 committed by Rowan Clark
parent 114820694c
commit f6c6c7f391
No known key found for this signature in database
GPG Key ID: F620D51904044094
1 changed files with 3 additions and 3 deletions

View File

@ -1,15 +1,15 @@
FROM node:18-alpine3.15 as npmpackages
FROM node:18-alpine3.17 as npmpackages
WORKDIR /app
COPY package.json .
RUN npm install
FROM node:18-alpine3.15 as builder
FROM node:18-alpine3.17 as builder
WORKDIR /app
COPY --from=npmpackages /app /app
COPY . .
RUN npm run build
FROM nginx:1.17.10-alpine
FROM nginx:stable-alpine
RUN rm -r /usr/share/nginx/html/
COPY --from=builder /app/_site/ /usr/share/nginx/html/