Files
LifeFaq/Dockerfile

14 lines
285 B
Docker
Raw Permalink Normal View History

2024-12-10 14:45:01 +01:00
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
2025-10-05 15:54:42 +02:00
# Port will be set via environment variable
EXPOSE 8000
2024-12-10 14:45:01 +01:00
2025-10-05 16:07:20 +02:00
CMD ["sh", "-c", "uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port ${PORT:-8000} --workers 1"]