fix docker.

This commit is contained in:
David Newhall II 2019-07-03 22:06:59 -07:00
parent b5ac3f9c02
commit f3f66ef6bc
1 changed files with 4 additions and 4 deletions

View File

@ -17,16 +17,16 @@ RUN dep ensure \
&& CGO_ENABLED=0 make linux
#
# creating container for run
# to use this container use the following command:
# creating container for run
# to use this container use the following command:
#
# docker run -d -v /your/config/up.conf:/etc/unifi-poller/up.conf golift/unifi-poller
#
# by using "-e UNIFI_PASSWORD=your-secret-pasword" you can avoid this configuration in the config file
#
FROM scratch
FROM scratch
COPY --from=builder /go/src/github.com/davidnewhall/unifi-poller/unifi-poller.linux /unifi-poller
COPY --from=builder /go/src/github.com/davidnewhall/unifi-poller/unifi-poller.amd64.linux /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"]