Adding dockerfile
parent
f8280032ef
commit
30a130ef5a
|
@ -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"]
|
||||||
|
|
Loading…
Reference in New Issue