From 2012be4fe7f6d47f2b7218bab4ff208408b45403 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Sun, 9 Mar 2025 22:13:41 -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