blob: e0b9ff4c02a9b8a537b321c250b191422325b052 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
FROM golang:1.24
WORKDIR /usr/src/app
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -v -o /usr/local/bin/app ./...
CMD ["app"]
|