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=""