chore: add Dockerfile (#25)

Signed-off-by: oldthreefeng <louisehong4168@gmail.com>
This commit is contained in:
oldthreefeng 2021-08-31 11:38:10 +08:00 committed by Damien Arrachequesne
parent e8eaf8b9d8
commit 9c8e7728a2
No known key found for this signature in database
GPG Key ID: 544D14663E7F7CF0
1 changed files with 18 additions and 0 deletions

18
ui/Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM node:14-alpine as node-builder
WORKDIR /app
# Install app dependencies
COPY package.json .
RUN npm install
# Bundle app source
COPY . .
RUN npm run build
FROM nginx:1.20.1
WORKDIR /usr/share/nginx/html
COPY --from=node-builder /app/dist .