From 6baa94c2896a5a2fcf6d24c7be5bc345d9c0f553 Mon Sep 17 00:00:00 2001 From: RawanMostafa08 Date: Sat, 21 Sep 2024 20:08:39 +0300 Subject: [PATCH] feat: docker file for gin server --- Dockerfile.gin | 13 +++++++++++++ Dockerfile => Dockerfile.http | 0 2 files changed, 13 insertions(+) create mode 100644 Dockerfile.gin rename Dockerfile => Dockerfile.http (100%) diff --git a/Dockerfile.gin b/Dockerfile.gin new file mode 100644 index 0000000..4644505 --- /dev/null +++ b/Dockerfile.gin @@ -0,0 +1,13 @@ +FROM golang:latest AS builder + +WORKDIR /app + +COPY . . + +RUN go mod download + +RUN go build -o ginserver ./cmd/ginserver/main.go + +EXPOSE 8083 + +ENTRYPOINT [ "/app/ginserver" ] \ No newline at end of file diff --git a/Dockerfile b/Dockerfile.http similarity index 100% rename from Dockerfile rename to Dockerfile.http