Open 5Mi opened 6 years ago
windows的话 volume只能挂载在 c:/Users/
下
# linux:alpine,node,npm
FROM registry.cn-qingdao.aliyuncs.com/wumi/docker_for_node:0.0.1
RUN mkdir /data
COPY ./package.json /data/
WORKDIR /data
RUN npm i --registry=https://registry.npm.taobao.org
EXPOSE 8080
# 运行
# docker build -t vue_docker .
# docker run --rm -v "/$(PWD)":/data -p 8000:8080 -it vue_docker