From 7767367a3bff56e1d4c28bb9eeda1c3d7d2a5098 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 15 Mar 2020 18:58:01 -0400 Subject: [PATCH] fix Dockerfiles to use go modules --- docker/Dockerfile.amd64 | 2 +- docker/Dockerfile.arm | 2 +- docker/Dockerfile.arm64 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.amd64 b/docker/Dockerfile.amd64 index 0b4d3b96..79024b46 100644 --- a/docker/Dockerfile.amd64 +++ b/docker/Dockerfile.amd64 @@ -4,7 +4,7 @@ FROM golang:1.14-alpine as builder WORKDIR /go/src/github.com/oliver006/redis_exporter/ -ADD *.go /go/src/github.com/oliver006/redis_exporter/ +ADD go.mod go.sum main.go exporter.go /go/src/github.com/oliver006/redis_exporter/ ARG GOARCH="amd64" ARG SHA1="[no-sha]" diff --git a/docker/Dockerfile.arm b/docker/Dockerfile.arm index cdddc2ca..7c696d43 100644 --- a/docker/Dockerfile.arm +++ b/docker/Dockerfile.arm @@ -4,7 +4,7 @@ FROM golang:1.14-alpine as builder WORKDIR /go/src/github.com/oliver006/redis_exporter/ -ADD *.go /go/src/github.com/oliver006/redis_exporter/ +ADD go.mod go.sum main.go exporter.go /go/src/github.com/oliver006/redis_exporter/ ARG GOARCH="amd64" ARG SHA1="[no-sha]" diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index cb5238f5..63f83598 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -4,7 +4,7 @@ FROM golang:1.14-alpine as builder WORKDIR /go/src/github.com/oliver006/redis_exporter/ -ADD *.go /go/src/github.com/oliver006/redis_exporter/ +ADD go.mod go.sum main.go exporter.go /go/src/github.com/oliver006/redis_exporter/ ARG GOARCH="arm64" ARG SHA1="[no-sha]"