From 4b89c96625e6356d80faf28e0a3d1f02c76839dc Mon Sep 17 00:00:00 2001 From: Jonas Pinson Date: Wed, 8 May 2024 19:06:25 +0200 Subject: [PATCH] Add dockerfile --- dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..cac692f --- /dev/null +++ b/dockerfile @@ -0,0 +1,16 @@ +FROM golang:1.22 + +WORKDIR /app + +COPY go.mod go.sum ./ + +RUN go mod download + +COPY *.go ./ + +RUN CGO_ENABLED=0 GOOS=linux go build -o /docker-gs-ping + + +EXPOSE 8001 + +CMD ["/docker-gs-ping"] \ No newline at end of file