Add Dockerfile for frontend
This commit is contained in:
parent
b3c576a214
commit
d65f48a387
2 changed files with 13 additions and 0 deletions
2
frontend/.dockerignore
Normal file
2
frontend/.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
build
|
11
frontend/Dockerfile
Normal file
11
frontend/Dockerfile
Normal 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
|
Loading…
Reference in a new issue