Add Dockerfile

This commit is contained in:
2025-03-09 22:13:41 -04:00
parent 7e18c2436b
commit 2012be4fe7

12
Dockerfile Normal file
View File

@@ -0,0 +1,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"]