Adding dockerfile

master
Uriel Fanelli 2021-09-14 20:42:18 +02:00
parent f8280032ef
commit 30a130ef5a
1 changed files with 19 additions and 0 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
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"]