Skip to content

Update Dockerfile to use 'go mod download' for dependencies#80

Open
LeonardoFranco28 wants to merge 1 commit into
krakend:masterfrom
LeonardoFranco28:fix/golang-dependency
Open

Update Dockerfile to use 'go mod download' for dependencies#80
LeonardoFranco28 wants to merge 1 commit into
krakend:masterfrom
LeonardoFranco28:fix/golang-dependency

Conversation

@LeonardoFranco28

Copy link
Copy Markdown

…pendency management

Copilot AI review requested due to automatic review settings May 8, 2026 02:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the jwt-revoker container build to use module-aware dependency downloading (go mod download) instead of go get -d, aligning the image build with modern Go module workflows.

Changes:

  • Replace go get -d -v ./... with go mod download during the Docker build.
  • Expand GOPROXY to include ,direct as a fallback.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 5 to 8
COPY . .

RUN GOPROXY=https://goproxy.io go get -d -v ./...
RUN GOPROXY=https://goproxy.io,direct go mod download
RUN go build .
@victorcarnaval

Copy link
Copy Markdown

Up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants