Manuel
4 years ago
No known key found for this signature in database
GPG Key ID: 4085037435E1F07A
2 changed files with
2 additions and
2 deletions
-
Dockerfile
-
Dockerfile.multiarch
|
|
@ -1,7 +1,7 @@ |
|
|
|
FROM golang:alpine as build |
|
|
|
|
|
|
|
COPY . /usr/src/fritzbox_exporter |
|
|
|
WORKDIR /usr/src/fritzbox_exporter |
|
|
|
COPY . . |
|
|
|
|
|
|
|
RUN go mod download; \ |
|
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-w -extldflags "-static"' -o fritzbox-exporter . |
|
|
|
|
|
@ -4,8 +4,8 @@ ARG TARGETOS |
|
|
|
ARG TARGETARCH |
|
|
|
ARG TARGETVARIANT |
|
|
|
|
|
|
|
COPY . /usr/src/fritzbox_exporter |
|
|
|
WORKDIR /usr/src/fritzbox_exporter |
|
|
|
COPY . . |
|
|
|
|
|
|
|
RUN go mod download; \ |
|
|
|
case "$TARGETVARIANT" in \ |
|
|
|