2021-10-04 15:09:22 +00:00
|
|
|
# docker build --rm -f docker/Dockerfile.server -t woodpeckerci/woodpecker-server .
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
EXPOSE 8000 9000 80 443
|
|
|
|
|
|
|
|
ENV GODEBUG=netdns=go
|
2021-10-28 19:02:43 +00:00
|
|
|
ENV WOODPECKER_DATABASE_DATASOURCE=/var/lib/woodpecker/woodpecker.sqlite
|
2021-10-04 15:09:22 +00:00
|
|
|
ENV WOODPECKER_DATABASE_DRIVER=sqlite3
|
2021-10-28 19:02:43 +00:00
|
|
|
ENV XDG_CACHE_HOME=/var/lib/woodpecker
|
2021-10-04 15:09:22 +00:00
|
|
|
|
2021-10-04 19:45:01 +00:00
|
|
|
ADD dist/server/linux_amd64/woodpecker-server /bin/
|
2021-10-04 15:09:22 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/woodpecker-server"]
|