19 Star 74 Fork 14

monw3c/xmui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 542 Bytes
一键复制 编辑 原始数据 按行查看 历史
monw3c 提交于 2018-02-05 09:51 +08:00 . :+1:
FROM node:9.0.0
MAINTAINER Mon <505038730@qq.com>
# 将根目录下的文件都copy到container(运行此镜像的容器)文件系统的src文件夹下
ADD . /src
# cd到src文件夹下
WORKDIR /src
# 安装项目依赖包
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install
#RUN npm rebuild node-sass --force
# 配置环境变量
ENV HOST 192.168.100.102
ENV PORT 8000
# 容器对外暴露的端口号
EXPOSE 8000
# 容器启动时执行的命令,类似npm run dev
CMD ["npm", "dev"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/monw3c/xmui.git
git@gitee.com:monw3c/xmui.git
monw3c
xmui
xmui
master

搜索帮助