crimsontome.com/Dockerfile

16 lines
314 B
Docker
Raw Normal View History

FROM node:18-alpine3.15 as npmpackages
2022-06-05 15:43:31 +01:00
WORKDIR /app
COPY package.json .
RUN npm install
FROM node:18-alpine3.15 as builder
2022-06-05 15:43:31 +01:00
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/