Skip to content

Commit 065ff80

Browse files
committed
feat: add Dockerfile
1 parent 0332417 commit 065ff80

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM golang:1.22-alpine as builder
2+
WORKDIR /usr/src/app
3+
COPY . .
4+
RUN go build -o /usr/local/bin/app
5+
6+
FROM alpine
7+
WORKDIR /srv
8+
COPY --from=builder /usr/local/bin/app app
9+
ENTRYPOINT ["/srv/app"]

0 commit comments

Comments
 (0)