From 2e1a82a87b0f62874ad001e21ebc3cb3622b7cb2 Mon Sep 17 00:00:00 2001 From: cybershady Date: Thu, 29 Aug 2024 22:32:48 -0600 Subject: [PATCH] start dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9dfd2c5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM golang:1.22-alpine + +WORKDIR /app + +COPY go.* ./ + +RUN go mod download + +COPY . . + +RUN go build -o main main.go + +EXPOSE 8080 + +CMD [ "./main" ] \ No newline at end of file