2024-05-29 05:34:05 +00:00
|
|
|
FROM docker.io/alpine:3.20
|
2022-07-17 07:41:32 +00:00
|
|
|
|
2022-03-01 15:40:24 +00:00
|
|
|
ARG TARGETOS TARGETARCH
|
2024-07-16 19:39:23 +00:00
|
|
|
RUN apk add -U --no-cache ca-certificates
|
2017-09-28 02:01:52 +00:00
|
|
|
ENV GODEBUG=netdns=go
|
2024-02-26 19:12:41 +00:00
|
|
|
# Internal setting do NOT change! Signals that woodpecker is running inside a container
|
|
|
|
ENV WOODPECKER_IN_CONTAINER=true
|
2021-10-28 19:02:43 +00:00
|
|
|
ENV XDG_CACHE_HOME=/var/lib/woodpecker
|
2022-09-04 01:24:42 +00:00
|
|
|
ENV XDG_DATA_HOME=/var/lib/woodpecker
|
2022-03-01 15:40:24 +00:00
|
|
|
EXPOSE 8000 9000 80 443
|
2017-09-28 02:01:52 +00:00
|
|
|
|
2023-12-29 19:30:20 +00:00
|
|
|
COPY dist/server/${TARGETOS}_${TARGETARCH}/woodpecker-server /bin/
|
2017-09-28 02:01:52 +00:00
|
|
|
|
2023-07-25 13:55:29 +00:00
|
|
|
HEALTHCHECK CMD ["/bin/woodpecker-server", "ping"]
|
2021-09-21 15:06:13 +00:00
|
|
|
ENTRYPOINT ["/bin/woodpecker-server"]
|