diff --git a/Dockerfile b/Dockerfile index 9b0c2a4..77d3bc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ -FROM golang:1.22-alpine3.20 as builder +FROM golang:1.23-alpine3.21 AS builder WORKDIR /app RUN apk --update add --no-cache ca-certificates tzdata make && update-ca-certificates COPY . . -RUN export GOPATH="/root/go" && make tools -RUN make build +RUN export GOPATH="/root/go" && make build # Pach binary file RUN apk add upx @@ -14,4 +13,6 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo/ COPY --from=builder /app/bin/app / +EXPOSE 8089 + ENTRYPOINT ["/app"]