From c0bc604b3d5ce89960df9863181febf047fb8d1f Mon Sep 17 00:00:00 2001 From: Rishabh Shah Date: Mon, 10 Mar 2025 18:17:37 -0400 Subject: [PATCH 1/2] changes --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c5e4a7..c44808e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,5 +19,5 @@ EXPOSE 8080 # Run the API Gateway. # Cloud Run will set PORT, so we use that environment variable. -# CMD ["python", "backend/api_gateway/api_gateway.py"] -CMD ["./start-services.sh"] \ No newline at end of file +CMD ["python", "backend/api_gateway/api_gateway.py"] +# CMD ["./start-services.sh"] \ No newline at end of file From 569c6c96700efc7d4fd33db5d94e56b38c7a1fa1 Mon Sep 17 00:00:00 2001 From: Rishabh Shah Date: Mon, 10 Mar 2025 18:20:28 -0400 Subject: [PATCH 2/2] Update Dockerfile to ensure start-services.sh has execute permissions and set it as the command to run --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c44808e..e971728 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,10 +14,13 @@ RUN pip install --no-cache-dir -r requirements.txt # Copy the entire project into the container COPY . . +# Ensure start-services.sh has execute permissions +RUN chmod +x start-services.sh + # Expose port 5000 (Cloud Run sets the PORT env variable) EXPOSE 8080 # Run the API Gateway. # Cloud Run will set PORT, so we use that environment variable. -CMD ["python", "backend/api_gateway/api_gateway.py"] -# CMD ["./start-services.sh"] \ No newline at end of file +# CMD ["python", "backend/api_gateway/api_gateway.py"] +CMD ["./start-services.sh"] \ No newline at end of file