2023-07-15 19:51:31 +00:00
|
|
|
FROM golang:alpine AS builder
|
|
|
|
RUN apk update && apk add --no-cache git
|
|
|
|
COPY . /jynx/
|
|
|
|
WORKDIR /jynx/
|
2023-07-15 21:31:23 +00:00
|
|
|
RUN go build -v .
|
2023-07-15 19:51:31 +00:00
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /jynx/jynx /jynx
|
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
|
|
ENTRYPOINT ["/jynx"]
|
|
|
|
|
2023-08-12 19:34:02 +00:00
|
|
|
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=""
|
2023-07-15 19:51:31 +00:00
|
|
|
ENV WOODPECKER_AGENT_SECRET=""
|
2023-08-12 19:34:02 +00:00
|
|
|
ENV WOODPECKER_HOSTNAME=""
|
2023-07-15 19:51:31 +00:00
|
|
|
ENV WOODPECKER_PROMETHEUS_AUTH_TOKEN=""
|