From 27aab70386c68f3a0f22c52e72b91cf16b289100 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 25 Mar 2024 12:08:35 -0600 Subject: initial commit --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..728ff30 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:1.22 + +WORKDIR /app + +COPY go.mod go.sum ./ +RUN go mod download + +COPY *.go ./ + +RUN go build -o /app/hatecomputers + +EXPOSE 8080 + +CMD ["/app/hatecomputers", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/hatecomputers.db", "--static-path", "/app/static"] -- cgit v1.2.3-70-g09d2