16 lines
347 B
Docker
16 lines
347 B
Docker
FROM python:3.13-slim
|
|
|
|
WORKDIR /app
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt --index https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
COPY app.py /app/app.py
|
|
|
|
EXPOSE 8002
|
|
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8002"]
|