Skip to content

Commit

Permalink
Resolve #170 again using gcr.io/distroless/static (#172)
Browse files Browse the repository at this point in the history
* Use gcr.io/distroless/static

Remove root_tmp.tgz

* Certificates are included in the base image
  • Loading branch information
zstadler authored Jun 18, 2024
1 parent 0457789 commit 2afacdd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ COPY . /workspace
WORKDIR /workspace
ENV CGO_ENABLED=0
RUN go build -o /workspace/go-pmtiles
FROM scratch
FROM gcr.io/distroless/static
COPY --from=builder /workspace/go-pmtiles /go-pmtiles
COPY --from=builder etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ADD root_tmp.tgz /
EXPOSE 8080
ENTRYPOINT ["/go-pmtiles"]
Binary file removed root_tmp.tgz
Binary file not shown.

0 comments on commit 2afacdd

Please sign in to comment.