3.4.前端应用构建
准备工作,1.程序源码
1
| https://gitee.com/olivee/cok/tree/master/cok-source-vue
|
1.准备vue包,编写镜像文件Dockerfile:
1 2
| FROM nginx:1.18-alpine COPY dist /usr/share/nginx/html/cok-ui/
|
1 2 3
| ### 2.构建镜像文件Dockerfile: ```shell docker build -t hub.aosccs.com.cn:8888/test1/cok-source-vue:v1.0 .
|
3.启动容器:
1
| docker run -itd --name cok-source-vue -p 18090:80 hub.aosccs.com.cn:8888/test1/cok-source-vue:v1.0
|
4.访问:
http://192.168.3.6:18090/cok-ui/index.html#/
