15 lines
319 B
Docker
15 lines
319 B
Docker
|
FROM node:18.14-alpine3.16 as npmpackages
|
||
|
WORKDIR /app
|
||
|
COPY package.json .
|
||
|
RUN npm install
|
||
|
|
||
|
FROM node:18.14-alpine3.16 as builder
|
||
|
WORKDIR /app
|
||
|
COPY --from=npmpackages /app /app
|
||
|
COPY . .
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM nginx:1.17.10-alpine
|
||
|
RUN rm -r /usr/share/nginx/html/
|
||
|
COPY --from=builder /app/_site/ /usr/share/nginx/html
|