Add Dockerfile for frontend

This commit is contained in:
Dana Lambert 2021-11-10 15:27:16 +13:00
parent b3c576a214
commit d65f48a387
2 changed files with 13 additions and 0 deletions

2
frontend/.dockerignore Normal file
View file

@ -0,0 +1,2 @@
node_modules
build

11
frontend/Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM node:16-alpine3.11 as builder
WORKDIR /app
COPY ./ /app
RUN npm install
RUN npm run-script build
RUN npm install -g serve