mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-29 03:40:31 +00:00
17 lines
452 B
Docker
17 lines
452 B
Docker
# docker build --rm -f docker/Dockerfile.agent -t woodpeckerci/woodpecker-agent .
|
|
|
|
# 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/agent/linux_amd64/woodpecker-agent /bin/
|
|
|
|
EXPOSE 3000
|
|
HEALTHCHECK CMD ["/bin/woodpecker-agent", "ping"]
|
|
|
|
ENTRYPOINT ["/bin/woodpecker-agent"]
|