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"]
|
|
|
|
|
|
|
|
ENV HCLOUD_API_TOKEN=""
|
|
|
|
ENV WOODPECKER_HOSTNAME=""
|
|
|
|
ENV WOODPECKER_AGENT_SECRET=""
|
|
|
|
ENV HCLOUD_PREFIX=""
|
|
|
|
ENV WOODPECKER_PROMETHEUS_AUTH_TOKEN=""
|
|
|
|
ENV LOGLEVEL=""
|