18 lines
418 B
Docker
18 lines
418 B
Docker
FROM golang:alpine AS builder
|
|
RUN apk update && apk add --no-cache git
|
|
COPY . /jynx/
|
|
WORKDIR /jynx/
|
|
RUN go build .
|
|
|
|
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=""
|