jynx/Dockerfile
Nils Stinnesbeck 6f11eaa891
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline was successful
* added HETZNER_SERVER_IMAGE
* added HETZNER_SERVER_LOCATION
* added HETZNER_SERVER_MAX
* added HETZNER_SERVER_MIN
* added HETZNER_SERVER_TYPE
* exposing SCALER_POLL_INTERVAL in Dockerfile
* now logging error instead of quitting program
* added support for newer woodpecker server version 1.0.x
2023-08-12 22:59:11 +02:00

24 lines
601 B
Docker

FROM golang:alpine AS builder
RUN apk update && apk add --no-cache git
COPY . /jynx/
WORKDIR /jynx/
RUN go build -v .
FROM scratch
COPY --from=builder /jynx/jynx /jynx
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/jynx"]
ENV HETZNER_CLOUD_API_TOKEN=""
ENV HETZNER_CLOUD_PREFIX=""
ENV HETZNER_SERVER_IMAGE=""
ENV HETZNER_SERVER_LOCATION=""
ENV HETZNER_SERVER_MAX=""
ENV HETZNER_SERVER_MIN=""
ENV HETZNER_SERVER_TYPE=""
ENV LOGLEVEL=""
ENV SCALER_POLL_INTERVAL=""
ENV WOODPECKER_AGENT_SECRET=""
ENV WOODPECKER_HOSTNAME=""
ENV WOODPECKER_PROMETHEUS_AUTH_TOKEN=""