Simplify environment variable declarations

This commit is contained in:
Lukas Wolfsteiner
2021-02-15 03:03:49 +01:00
committed by GitHub
parent e2d5bbfcd9
commit 009e3fcbe3

View File

@@ -2,9 +2,9 @@ FROM golang:rc-alpine3.13 AS builder
RUN go get github.com/sberk42/fritzbox_exporter/
FROM alpine:latest
ENV USERNAME ${USERNAME} && \
PASSWORD ${PASSWORD} && \
GWURL ${GWURL}
ENV USERNAME="username"
ENV PASSWORD="password"
ENV GATEWAY_URL="http://fritz.box:49000"
WORKDIR /root/
COPY --from=builder /go/bin/fritzbox_exporter .
COPY metrics.json metrics-lua.json ./