Files
sysconfig/vue-cli-uniapp.Dockerfile
T
2022-12-02 13:04:03 +08:00

13 lines
542 B
Docker

FROM node:16
LABEL luk "[email protected]"
RUN npm i -g --registry https://registry.npm.taobao.org @vue/cli@4
RUN RUN cd / && echo -e "\n" | vue create --registry https://registry.npm.taobao.org -p dcloudio/uni-preset-vue vue-cli-uniapp
RUN cd /vue-cli-uniapp && npm i -D --registry https://registry.npm.taobao.org [email protected] [email protected]
EXPOSE 8080
CMD cd /vue-cli-uniapp && npm run serve
# docker build -t luk/name:tag .
# docker run -d -p 8082:8080 -v /home/adot/pex-user-uniapp:/vue-cli-uniapp/src luk/vue-cli-uniapp