remove dockerbin target, fix dockerfile and update docker_repo in makefile

Signed-off-by: Martin Buchleitner <mabunixda@gmail.com>
This commit is contained in:
Martin Buchleitner
2019-06-14 07:39:16 +02:00
parent 83f84922a0
commit 4960ab3928
2 changed files with 3 additions and 9 deletions

View File

@@ -12,11 +12,11 @@ COPY . $GOPATH/src/github.com/davidnewhall/unifi-poller
WORKDIR $GOPATH/src/github.com/davidnewhall/unifi-poller
RUN dep ensure \
&& make dockerbin
&& CGO_ENABLED=0 make build
FROM scratch
COPY --from=builder /go/src/github.com/davidnewhall/unifi-poller/unifi-poller.dockerbin /unifi-poller
COPY --from=builder /go/src/github.com/davidnewhall/unifi-poller/unifi-poller /unifi-poller
COPY --from=builder /go/src/github.com/davidnewhall/unifi-poller/examples/up.conf.example /etc/unifi-poller/up.conf
VOLUME [ "/etc/unifi-poller"]