FROM golang:1.14.1 AS builder RUN apt install git -y RUN mkdir -p /go/src/zumba RUN git clone https://git.keinpfusch.net/loweel/zumba.git /go/src/zumba WORKDIR /go/src/zumba ENV GO111MODULE=auto RUN go get ; go build FROM debian:latest RUN apt update RUN apt upgrade -y RUN apt install ca-certificates -y RUN mkdir -p /opt/zumba WORKDIR /opt/zumba COPY --from=builder /go/src/zumba /opt/zumba ENV ACME_FILE=/acme/acme.json ENV CERT_PATH=/certs ENTRYPOINT ["/opt/zumba/zumba"]