Skip to content

Commit

Permalink
Allow Docker image to convert (#171)
Browse files Browse the repository at this point in the history
* Allow Docker image to `convert`

Add a `/tmp` directory to the image by copying it from the builder.

Resolve #170

* Use a tar file to create /tmp in the Docker image

It allows setting the user, group, and permissions of /tmp
Thanks to https://www.reddit.com/r/docker/comments/8y2zyx/comment/hneaaqe/
  • Loading branch information
zstadler authored Jun 11, 2024
1 parent 5a7f686 commit 0457789
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ RUN go build -o /workspace/go-pmtiles
FROM scratch
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 added root_tmp.tgz
Binary file not shown.

0 comments on commit 0457789

Please sign in to comment.