log101-dot-dev-services/docker/go/Dockerfile
log101 3870624a9a
All checks were successful
/ Build (push) Successful in 1m35s
fix: go build doesn't build
2024-05-30 18:52:31 +03:00

13 lines
302 B
Docker

FROM golang:1.22.3
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 && go mod verify
COPY . .
RUN go build -v -o /usr/local/bin ./...
CMD ["log101-blog-services"]