Metrics
0
Watch 25 Star 131 Fork 37

xuthus / GoMDGoGPL-3.0

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
使用Golang开发的简洁、易用的Markdown博客系统 spread retract

http://xblogs.cn

Clone or download
Dockerfile 411 Bytes
Copy Edit Web IDE Raw Blame History
xuthus authored 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

Comment ( 0 )

You need to Sign in for post a comment

Help Search

Gitee_you_jiang_zheng_wen Zheng_wen_close