diff --git a/Dockerfile b/Dockerfile index 64a307534..9e88bb90b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,7 @@ RUN npm run build FROM python:3.11-slim-bookworm as base ENV ENV=prod +ENV PORT "" ENV OLLAMA_API_BASE_URL "/ollama/api" diff --git a/backend/dev.sh b/backend/dev.sh index 50dc5cad1..c66ae4ba9 100644 --- a/backend/dev.sh +++ b/backend/dev.sh @@ -1,2 +1,2 @@ -SERVER_PORT="${SERVER_PORT:-8080}" -uvicorn main:app --port $SERVER_PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload \ No newline at end of file +PORT="${PORT:-8080}" +uvicorn main:app --port $PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload \ No newline at end of file diff --git a/backend/start.sh b/backend/start.sh index 9ced76448..44e0c5810 100755 --- a/backend/start.sh +++ b/backend/start.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -SERVER_PORT="${SERVER_PORT:-8080}" -uvicorn main:app --host 0.0.0.0 --port $SERVER_PORT --forwarded-allow-ips '*' +PORT="${PORT:-8080}" +uvicorn main:app --host 0.0.0.0 --port $PORT --forwarded-allow-ips '*'