mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 08:23:48 +02:00
17 lines
428 B
Docker
17 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"]
|