1 Star 0 Fork 0

鹏程/studygolang

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.web 914 Bytes
一键复制 编辑 原始数据 按行查看 历史
jockerxu 提交于 2017-11-15 18:26 +08:00 . dockerize studygolang
# This file decribes the standard way to build stadygolang, using docker
#
# # Usage
#
# # # download the src and enter the dir first
# docker build -f Dockerfile.web -t studygolang .
#
# docker run --name mysqlDB -e MYSQL_ROOT_PASSWORD=123456 -d mysql
# docker run -d --name studygolang-web -v `pwd`:/studyglang -p 8090:8088 --link mysqlDB:db.localhost studygolang ./docker-entrypoint.sh
#
# # inside the container
# bin/studygolang
#
# # just compile
# docker run --rm -v `pwd`:/studyglang ./install.sh
# # and in production environment just put this binary file in jockerxu/ubuntu-golang and run it
FROM jockerxu/ubuntu-golang
MAINTAINER jockerxu <156082052@qq.com>
# download dep
RUN go get github.com/polaris1119/gvt
WORKDIR /studygolang
COPY . /studygolang
RUN cd src/ && gvt restore
RUN mkdir -p /vendor/src/ && mv src/vendor/* /vendor/src/
ENV GOPATH $GOPATH:/vendor
# run
CMD ["docker-entrypoint.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/barry_zpc/studygolang.git
git@gitee.com:barry_zpc/studygolang.git
barry_zpc
studygolang
studygolang
master

搜索帮助