Skip to content

Commit d31ef20

Browse files
committed
dockerfile for building images for golang
1 parent 2dae018 commit d31ef20

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM golang
2+
3+
WORKDIR /go/github.com/coding-latte/golang-docker-multistage-build-demo
4+
5+
COPY . .
6+
7+
RUN go get .
8+
9+
RUN go build -o app .
10+
11+
CMD [ "./app" ]
12+
13+
EXPOSE 8080

0 commit comments

Comments
 (0)