Skip to content

Commit

Permalink
fix Dockerfiles to use go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver006 committed Mar 15, 2020
1 parent 434fcf8 commit 7767367
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.arm
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
Expand Down

0 comments on commit 7767367

Please sign in to comment.