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

Loading…
Cancel
Save