fix ddns build

This commit is contained in:
Philipp Böhm 2017-07-02 23:08:36 +02:00
parent 9f4442db79
commit abcdc9ecd3
4 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,9 @@
FROM golang:1.7-onbuild
FROM golang:1.7
WORKDIR /go/src/github.com/pboehm/ddns
COPY . .
RUN go-wrapper download # "go get -d -v ./..."
RUN go-wrapper install # "go install -v ."
CMD ["/bin/true"]

View file

@ -5,7 +5,7 @@ volumes:
services:
ddns:
restart: unless-stopped
restart: no
build:
context: ..
dockerfile: docker/ddns/Dockerfile

View file

@ -3,6 +3,7 @@ cache-ttl=0
loglevel=7
log-dns-details=yes
disable-axfr=yes
pipe-abi-version=1
launch=pipe
pipe-command=/go/bin/app --domain={{DDNS_DOMAIN}} --soa_fqdn={{DDNS_SOA_DOMAIN}} --redis=redis:6379 {{DDNS_VERBOSE}} backend
pipe-command=/go/bin/ddns --domain={{DDNS_DOMAIN}} --soa_fqdn={{DDNS_SOA_DOMAIN}} --redis=redis:6379 {{DDNS_VERBOSE}} backend

View file

@ -3,4 +3,4 @@ MAINTAINER Philipp Böhm <philipp@pboehm.org>
ENV GIN_MODE release
CMD /go/bin/app --domain=${DDNS_DOMAIN} --redis=redis:6379 web
CMD /go/bin/ddns --domain=${DDNS_DOMAIN} --redis=redis:6379 web