fix dockerfile
This commit is contained in:
@@ -3,8 +3,8 @@ FROM golang:1.22
|
|||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
|
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
|
||||||
COPY go.mod go.sum ./
|
# COPY go.mod go.sum ./
|
||||||
RUN go mod download && go mod verify
|
# RUN go mod download && go mod verify
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -v -o /usr/local/bin/app ./...
|
RUN go build -v -o /usr/local/bin/app ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user