From d5b380b335cdaeafc63ff0e2c2e85104b46c8eea Mon Sep 17 00:00:00 2001 From: Madhur Shrimal Date: Tue, 3 Dec 2024 10:13:26 -0800 Subject: [PATCH] chore: remove go mod tidy from docker build (#16) --- Dockerfile | 2 +- Dockerfile.goreleaser | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 799caf9..38c99d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /usr/src/app COPY go.mod go.sum ./ -RUN go mod download && go mod tidy && go mod verify +RUN go mod download && go mod verify COPY . . diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser index 592356d..c0ea590 100644 --- a/Dockerfile.goreleaser +++ b/Dockerfile.goreleaser @@ -1,16 +1,3 @@ -#FROM golang:1.21 AS build -# -#WORKDIR /usr/src/app -# -#COPY go.mod go.sum ./ -# -#RUN go mod download && go mod tidy && go mod verify -# -#COPY . . -# -#ARG APP_VERSION -#RUN go build -ldflags "-X main.version=$APP_VERSION" -v -o bin/cerberus cmd/cerberus/main.go - FROM debian:latest COPY cerberus /cerberus