mirror of
https://github.com/joohoi/acme-dns.git
synced 2024-12-22 21:53:52 +07:00
21 lines
484 B
Docker
21 lines
484 B
Docker
|
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
|