Skip to content

Commit

Permalink
Build using vendor packages
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoulless committed Dec 24, 2024
1 parent 7917f22 commit 2183e91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ ARG GO_VERSION=1
FROM golang:${GO_VERSION}-bookworm as builder

WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go mod verify
RUN go build -v -o /run-app .


FROM debian:bookworm

COPY --from=builder /run-app /usr/local/bin/
Expand Down

0 comments on commit 2183e91

Please sign in to comment.