| |
| FROM python:3.10-bullseye |
|
|
| |
| EXPOSE 6969 |
|
|
| |
| WORKDIR /app |
|
|
| |
| RUN apt update && \ |
| apt install -y -qq ffmpeg && \ |
| apt clean && rm -rf /var/lib/apt/lists/* |
|
|
| |
| COPY . . |
|
|
| |
| RUN python3 -m venv /app/.venv && \ |
| . /app/.venv/bin/activate && \ |
| pip install --no-cache-dir --upgrade pip && \ |
| pip install --no-cache-dir python-ffmpeg && \ |
| pip install --no-cache-dir torch==2.7.1 torchvision torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128 && \ |
| if [ -f "requirements.txt" ]; then pip install --no-cache-dir -r requirements.txt; fi |
|
|
| |
| VOLUME ["/app/logs/"] |
|
|
| |
| ENV PATH="/app/.venv/bin:$PATH" |
|
|
| |
| ENTRYPOINT ["python3"] |
| CMD ["app.py"] |
|
|