15 lines
484 B
Docker
15 lines
484 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt ./requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY app ./app
|
|
|
|
EXPOSE 8000
|
|
# Queue workers already schedule concurrent requests inside this one process.
|
|
CMD ["uvicorn", "app.modules.work_assistant.application:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--timeout-graceful-shutdown", "45"]
|