Skip to content

Commit

Permalink
docker: update go version, move binary to root [#150] (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon authored Mar 8, 2024
1 parent e6b8514 commit 094b80a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 094b80a

Please sign in to comment.