Add Dockerfile support.

This commit is contained in:
hxsherry 2018-01-28 15:07:50 +08:00
parent f0c0a140ec
commit 84df8567c5

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
# 使用最新的golang作为母镜像
FROM golang:latest
# 维护者信息
MAINTAINER eyeblue "eyebluecn@126.com"
WORKDIR $GOPATH/src/hellodocker
ADD . $GOPATH/src/hellodocker
RUN go build .
EXPOSE 8080
ENTRYPOINT ["./hellodocker"]