From 762104d7f084950b892e59149d0e4865870c3779 Mon Sep 17 00:00:00 2001 From: Jonas Pinson Date: Tue, 14 May 2024 21:24:38 +0200 Subject: [PATCH] add Dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1e97627 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM golang:1.22 + +WORKDIR /app + +COPY go.mod go.sum ./ + +RUN go mod download + +COPY . ./ + +RUN CGO_ENABLED=0 GOOS=linux go build -o /docker-gs-ping + +EXPOSE 8001 + +CMD ["/docker-gs-ping"] \ No newline at end of file