Browse Source

Simplify environment variable declarations

pull/5/head
Lukas Wolfsteiner 4 years ago
committed by GitHub
parent
commit
009e3fcbe3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      Dockerfile

6
Dockerfile

@ -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 ./

Loading…
Cancel
Save