Dev Docker container (#35)

This commit is contained in:
John Wu
2021-05-04 16:19:05 -07:00
committed by GitHub
parent 742e3047e0
commit dc30ee259a
3 changed files with 13 additions and 2 deletions

12
Dockerfile.dev Normal file
View File

@@ -0,0 +1,12 @@
FROM node:12-alpine as builder
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder build /usr/share/nginx/html
COPY .env /usr/share/nginx/html/.env
COPY nginx.conf /etc/nginx/conf.d/default.conf