1 Star 0 Fork 56

gift / GoMD

forked from xuthus / GoMD 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 411 Bytes
一键复制 编辑 原始数据 按行查看 历史
xuthus 提交于 2019-03-20 17:29 . 新增:Dockerfile
FROM library/golang:1.11
# Godep for vendoring
RUN go get github.com/tools/godep
# Recompile the standard library without CGO
RUN CGO_ENABLED=0 go install -a std
ENV APP_DIR $GOPATH/src/GoMD
RUN mkdir -p $APP_DIR
# Set the entrypoint
ENTRYPOINT (cd $APP_DIR && ./GoMD)
ADD . $APP_DIR
# Compile the binary and statically link
RUN cd $APP_DIR && CGO_ENABLED=0 godep go build -ldflags '-d -w -s'
EXPOSE 9000
Go
1
https://gitee.com/zjq528/GoMD.git
git@gitee.com:zjq528/GoMD.git
zjq528
GoMD
GoMD
master

搜索帮助