20 lines
456 B
Docker
20 lines
456 B
Docker
|
|
FROM docker.m.daocloud.io/library/python:3.11-slim-bookworm
|
||
|
|
|
||
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||
|
|
PYTHONUNBUFFERED=1 \
|
||
|
|
PIP_NO_CACHE_DIR=1
|
||
|
|
|
||
|
|
RUN apt-get update \
|
||
|
|
&& apt-get install -y --no-install-recommends curl ffmpeg \
|
||
|
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
COPY requirements.txt ./
|
||
|
|
RUN pip install -r requirements.txt
|
||
|
|
|
||
|
|
COPY app ./app
|
||
|
|
COPY tools ./tools
|
||
|
|
|
||
|
|
EXPOSE 8080
|
||
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]
|