Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
 This commit also disable the docker building process performed by
 goreleaser. Docker containers are built now by hub.docker.com.
  • Loading branch information
Gustavo Chain committed Mar 31, 2020
1 parent 89085c7 commit 5e57b32
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
7 changes: 0 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ builds:
- arm
- arm64

dockers:
-
dockerfile: Dockerfile.goreleaser
image_templates:
- "mempool/mempool-cli:latest"
- "mempool/mempool-cli:{{ .Tag }}"

archives:
- replacements:
linux: Linux
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang:1.14-alpine
RUN apk --no-cache add ca-certificates
WORKDIR /src
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o mempool-cli .

FROM scratch
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=0 /src/mempool-cli /
ENTRYPOINT ["/mempool-cli"]
7 changes: 0 additions & 7 deletions Dockerfile.goreleaser

This file was deleted.

0 comments on commit 5e57b32

Please sign in to comment.