jynx/Dockerfile

24 lines
601 B
Docker
Raw Permalink Normal View History

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/
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"]
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=""
ENV WOODPECKER_HOSTNAME=""
2023-07-15 19:51:31 +00:00
ENV WOODPECKER_PROMETHEUS_AUTH_TOKEN=""