Skip to content

Commit 9f7f167

Browse files
committed
added: Go Dockerfile
1 parent 5571eaa commit 9f7f167

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM golang:1.21.5
2+
3+
WORKDIR /app
4+
5+
COPY go.mod go.sum ./
6+
7+
RUN go mod download
8+
9+
COPY . .
10+
11+
RUN go build -o app ./src/app.go
12+
13+
EXPOSE 5000
14+
15+
CMD ["./app"]

0 commit comments

Comments
 (0)