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