添加容器化部署方式

This commit is contained in:
fxiang21
2019-11-07 14:51:59 +08:00
committed by pycook
parent cce10d39ea
commit aad37dcf0b
7 changed files with 233 additions and 0 deletions

13
ui/Dockerfile-ui Normal file
View File

@@ -0,0 +1,13 @@
FROM alpine:3.9
LABEL description="cmdb-ui"
RUN mkdir -p /data/apps/cmdb-ui/logs
COPY . /data/apps/cmdb-ui
WORKDIR /data/apps/cmdb-ui
RUN apk add yarn && yarn install
CMD ["sh", "-c", "yarn run serve"]