Browse Source
Simplify environment variable declarations
pull/5/head
Lukas Wolfsteiner
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
Dockerfile
|
@ -2,9 +2,9 @@ FROM golang:rc-alpine3.13 AS builder |
|
|
RUN go get github.com/sberk42/fritzbox_exporter/ |
|
|
RUN go get github.com/sberk42/fritzbox_exporter/ |
|
|
|
|
|
|
|
|
FROM alpine:latest |
|
|
FROM alpine:latest |
|
|
ENV USERNAME ${USERNAME} && \ |
|
|
ENV USERNAME="username" |
|
|
PASSWORD ${PASSWORD} && \ |
|
|
ENV PASSWORD="password" |
|
|
GWURL ${GWURL} |
|
|
ENV GATEWAY_URL="http://fritz.box:49000" |
|
|
WORKDIR /root/ |
|
|
WORKDIR /root/ |
|
|
COPY --from=builder /go/bin/fritzbox_exporter . |
|
|
COPY --from=builder /go/bin/fritzbox_exporter . |
|
|
COPY metrics.json metrics-lua.json ./ |
|
|
COPY metrics.json metrics-lua.json ./ |
|
|