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