From bcd56644b9905d3b8d9eac79eb923ffc185c82aa Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Sun, 9 Mar 2025 23:49:59 -0400 Subject: Add Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e0b9ff4 --- /dev/null +++ b/Dockerfile @@ -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"] -- cgit