代码拉取完成,页面将自动刷新
# 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"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。