woodpecker/docker/Dockerfile.cli
Anbraten d15c642f91
Release cli images (#404)
* release cli images

* update docs

Co-authored-by: 6543 <6543@obermui.de>
2021-10-04 23:47:21 +02:00

16 lines
428 B
Docker

# docker build --rm -f docker/Dockerfile.cli -t woodpeckerci/woodpecker-cli .
# use golang image to copy ssl certs later
FROM golang:1.16
FROM scratch
# copy certs from golang:1.16 image
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENV GODEBUG=netdns=go
ADD dist/cli/linux_amd64/woodpecker-cli /bin/
HEALTHCHECK CMD ["/bin/woodpecker-cli", "ping"]
ENTRYPOINT ["/bin/woodpecker-cli"]