Add Dockerfile support.
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user