deployed problem
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
FROM python:3.12-slim
|
FROM python:3.12-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
ENV PYTHONPATH=/app
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ services:
|
|||||||
buildCommand: pip install -r requirements.txt
|
buildCommand: pip install -r requirements.txt
|
||||||
startCommand: python3 -m uvicorn main:app --host 0.0.0.0 --port $PORT
|
startCommand: python3 -m uvicorn main:app --host 0.0.0.0 --port $PORT
|
||||||
envVars:
|
envVars:
|
||||||
|
- key: PYTHONPATH
|
||||||
|
value: /opt/render/project/src
|
||||||
- key: PORT
|
- key: PORT
|
||||||
value: 10000
|
value: 10000
|
||||||
- key: PYTHON_VERSION
|
- key: PYTHON_VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user