diff --git a/.deployment/burn_backend/prod.Dockerfile b/.deployment/burn_backend/prod.Dockerfile index 02fd6f78..2b2bbd5e 100644 --- a/.deployment/burn_backend/prod.Dockerfile +++ b/.deployment/burn_backend/prod.Dockerfile @@ -27,5 +27,5 @@ FROM base AS runtime COPY --from=environment /opt/conda /opt/conda COPY src/ /src/ SHELL ["conda", "run", "-n", "burn-severity-prod", "/bin/bash", "-c"] -EXPOSE 8080 -ENTRYPOINT ["conda", "run", "-n", "burn-severity-prod", "uvicorn", "src.burn_backend.app:app", "--host=0.0.0.0", "--port=8080"] \ No newline at end of file +EXPOSE 5050 +ENTRYPOINT ["conda", "run", "-n", "burn-severity-prod", "uvicorn", "src.burn_backend.app:app", "--host=0.0.0.0", "--port=5050"] \ No newline at end of file diff --git a/.deployment/tofu/modules/burn_backend/main.tf b/.deployment/tofu/modules/burn_backend/main.tf index b1f4c0ff..86684454 100644 --- a/.deployment/tofu/modules/burn_backend/main.tf +++ b/.deployment/tofu/modules/burn_backend/main.tf @@ -8,6 +8,9 @@ resource "google_cloud_run_v2_service" "tf-rest-burn-severity" { timeout = "3599s" # max timeout is one hour containers { image = "us-docker.pkg.dev/cloudrun/container/placeholder" # This is a placeholder for first time creation only, replaced by CI/CD in GitHub Actions + ports { + container_port = 5050 + } env { name = "ENV" value = "CLOUD"