This commit also disable the docker building process performed by goreleaser. Docker containers are built now by hub.docker.com.
This commit is contained in:
parent
89085c721c
commit
5e57b325d9
@ -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
|
||||
|
||||
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -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"]
|
||||
@ -1,7 +0,0 @@
|
||||
FROM alpine as certs
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
FROM scratch
|
||||
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY mempool-cli /
|
||||
ENTRYPOINT ["/mempool-cli"]
|
||||
Loading…
Reference in New Issue
Block a user