Dockerfile for Go

This commit is contained in:
Mihalis Tsoukalos 2019-01-10 19:08:04 +02:00
commit 8c05eed3e2

8
ch01/Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM golang:alpine
RUN mkdir /files
COPY hw.go /files
WORKDIR /files
RUN go build -o /files/hw hw.go
ENTRYPOINT ["/files/hw"]