Docker instructions and configuration (#33)

* Added dockerfile

* Docker configuration

* Added Docker images, composer configuration and documentation
This commit is contained in:
Joona Hoikkala
2018-01-22 12:35:07 +02:00
committed by GitHub
parent c5337fc841
commit 665455d319
4 changed files with 67 additions and 3 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM golang:1.9.2-alpine AS builder
LABEL maintainer="joona@kuori.org"
RUN apk add --update gcc musl-dev git
RUN go get github.com/joohoi/acme-dns
WORKDIR /go/src/github.com/joohoi/acme-dns
RUN CGO_ENABLED=1 go build
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /go/src/github.com/joohoi/acme-dns .
RUN mkdir -p /etc/acme-dns
RUN mkdir -p /var/lib/acme-dns
RUN rm -rf ./config.cfg
VOLUME ["/etc/acme-dns", "/var/lib/acme-dns"]
ENTRYPOINT ["./acme-dns"]
EXPOSE 53 80 443