feat: add Dockerfile

pull/3/head^2
CrimsonTome 2023-03-19 14:57:13 +00:00 committed by Rowan Clark
parent 61d0693ed7
commit 782d9e6d19
No known key found for this signature in database
GPG Key ID: F620D51904044094
1 changed files with 14 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
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