From 13443093b9b85fa26996de1356095459bbb1c275 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 27 Jun 2024 15:49:31 +0200 Subject: [PATCH] chore: Update Dockerfile to include environment flag for building the Go application --- occupi-backend/Dockerfile.dev | 4 ++-- occupi-backend/Dockerfile.prod | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/occupi-backend/Dockerfile.dev b/occupi-backend/Dockerfile.dev index 59667925..e8983a25 100644 --- a/occupi-backend/Dockerfile.dev +++ b/occupi-backend/Dockerfile.dev @@ -12,10 +12,10 @@ RUN go mod download && go mod verify COPY . . # Build the Go application -RUN go build -o occupi-backend ./cmd/occupi-backend -env=dev.deployed +RUN go build -o occupi-backend ./cmd/occupi-backend # Expose the port the app runs on EXPOSE 8081 # Command to run the executable -CMD ["./occupi-backend"] \ No newline at end of file +CMD ["./occupi-backend", "-env=dev.deployed"] \ No newline at end of file diff --git a/occupi-backend/Dockerfile.prod b/occupi-backend/Dockerfile.prod index 4aafefb2..fd8f838f 100644 --- a/occupi-backend/Dockerfile.prod +++ b/occupi-backend/Dockerfile.prod @@ -12,10 +12,10 @@ RUN go mod download && go mod verify COPY . . # Build the Go application -RUN go build -o occupi-backend ./cmd/occupi-backend -env=prod +RUN go build -o occupi-backend ./cmd/occupi-backend # Expose the port the app runs on EXPOSE 8080 # Command to run the executable -CMD ["./occupi-backend"] \ No newline at end of file +CMD ["./occupi-backend", "-env=prod"] \ No newline at end of file