Add Dockerfile support.
This commit is contained in:
parent
f0c0a140ec
commit
84df8567c5
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"]
|
Loading…
Reference in New Issue
Block a user