Skip to content

Commit

Permalink
chore: Update Dockerfile (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonjek authored Dec 9, 2024
1 parent db4bbd5 commit dbc5ba9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"]

0 comments on commit dbc5ba9

Please sign in to comment.