Skip to content

Commit dbc5ba9

Browse files
authored
chore: Update Dockerfile (#29)
1 parent db4bbd5 commit dbc5ba9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM golang:1.22-alpine3.20 as builder
1+
FROM golang:1.23-alpine3.21 AS builder
22
WORKDIR /app
33
RUN apk --update add --no-cache ca-certificates tzdata make && update-ca-certificates
44
COPY . .
5-
RUN export GOPATH="/root/go" && make tools
6-
RUN make build
5+
RUN export GOPATH="/root/go" && make build
76

87
# Pach binary file
98
RUN apk add upx
@@ -14,4 +13,6 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1413
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo/
1514
COPY --from=builder /app/bin/app /
1615

16+
EXPOSE 8089
17+
1718
ENTRYPOINT ["/app"]

0 commit comments

Comments
 (0)