From 094b80abeb9dc2701c662fdb7e1e1839df32c4ed Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 8 Mar 2024 16:35:56 +0800 Subject: [PATCH] docker: update go version, move binary to root [#150] (#151) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9b111e..dfaa2be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM golang:1.20.8-alpine3.18 AS builder +FROM golang:1.21.8-alpine3.19 AS builder COPY . /workspace WORKDIR /workspace ENV CGO_ENABLED=0 RUN go build -o /workspace/go-pmtiles FROM scratch -COPY --from=builder /workspace/go-pmtiles /workspace/go-pmtiles +COPY --from=builder /workspace/go-pmtiles /go-pmtiles COPY --from=builder etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ EXPOSE 8080 -ENTRYPOINT ["/workspace/go-pmtiles"] +ENTRYPOINT ["/go-pmtiles"]