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