Skip to content

Commit

Permalink
Use go mod download instead of go get
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre BRUYANT committed Nov 16, 2021
1 parent 6f026d8 commit 3e9dc3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM golang:1.16 as build-env

WORKDIR /go/src/app
ADD . /go/src/app
WORKDIR /app

RUN go get -d -v ./...
COPY go.mod ./
COPY go.sum ./
RUN go mod download

COPY . /app

RUN go build -o /go/bin/app

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/CrispyBaguette/ovh-dns-alter-action
go 1.16

require (
github.com/ovh/go-ovh v1.1.0 // indirect
github.com/spf13/viper v1.8.1 // indirect
github.com/ovh/go-ovh v1.1.0
github.com/spf13/viper v1.8.1
)

0 comments on commit 3e9dc3c

Please sign in to comment.