9 lines
332 B
Docker
9 lines
332 B
Docker
|
|
FROM python:3.11-slim
|
||
|
|
WORKDIR /app
|
||
|
|
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
||
|
|
COPY requirements.txt .
|
||
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
COPY . .
|
||
|
|
EXPOSE 8787
|
||
|
|
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8787", "--workers", "1", "--log-level", "info"]
|