Skip to content

Commit

Permalink
chore: remove go mod tidy from docker build (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur authored Dec 3, 2024
1 parent 5ce56d9 commit d5b380b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .

Expand Down
13 changes: 0 additions & 13 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit d5b380b

Please sign in to comment.