From cf7c78ba278a3f180a8841cf1cd632328b82e1e1 Mon Sep 17 00:00:00 2001 From: punitkr03 Date: Thu, 29 Feb 2024 21:15:52 +0530 Subject: [PATCH] dockerfile structure updated --- {docker/core => auth}/Dockerfile | 0 {docker/mail => core}/Dockerfile | 0 docker/auth/Dockerfile | 8 -------- docker/auth/README.md | 0 docker/core/README.md | 0 docker/docker-compose.yml | 0 docker/mail/README.md | 0 mail/Dockerfile | 6 ++++++ 8 files changed, 6 insertions(+), 8 deletions(-) rename {docker/core => auth}/Dockerfile (100%) rename {docker/mail => core}/Dockerfile (100%) delete mode 100644 docker/auth/Dockerfile delete mode 100644 docker/auth/README.md delete mode 100644 docker/core/README.md delete mode 100644 docker/docker-compose.yml delete mode 100644 docker/mail/README.md create mode 100644 mail/Dockerfile diff --git a/docker/core/Dockerfile b/auth/Dockerfile similarity index 100% rename from docker/core/Dockerfile rename to auth/Dockerfile diff --git a/docker/mail/Dockerfile b/core/Dockerfile similarity index 100% rename from docker/mail/Dockerfile rename to core/Dockerfile diff --git a/docker/auth/Dockerfile b/docker/auth/Dockerfile deleted file mode 100644 index 1c25a62..0000000 --- a/docker/auth/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM golang:latest - -WORKDIR /go/src/app - -COPY . . - -RUN go mod download - diff --git a/docker/auth/README.md b/docker/auth/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/docker/core/README.md b/docker/core/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml deleted file mode 100644 index e69de29..0000000 diff --git a/docker/mail/README.md b/docker/mail/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/mail/Dockerfile b/mail/Dockerfile new file mode 100644 index 0000000..d93d5ad --- /dev/null +++ b/mail/Dockerfile @@ -0,0 +1,6 @@ +FROM golang:latest +RUN mkdir /app +COPY . /app +WORKDIR /app/auth/cmd/main +RUN go build -o main +CMD [ "/app/cmd/main/main" ] \ No newline at end of file