jynx/Dockerfile
Nils Stinnesbeck c7da3f2147
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
first test build
2023-07-15 21:51:31 +02:00

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