Skip to content

Commit

Permalink
docker build from scratch image [#3]
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Jun 14, 2021
1 parent ec1f005 commit 4539bc0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM golang:1.16.5 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
EXPOSE 8077
ENTRYPOINT ["/workspace/go-pmtiles"]

0 comments on commit 4539bc0

Please sign in to comment.