llm-translate/Dockerfile
illian64 c103edfdd3
Some checks failed
Python application / build (push) Has been cancelled
Prompt in external files
2026-07-05 18:36:44 +07:00

25 lines
710 B
Docker

FROM nvidia/cuda:12.9.1-cudnn-runtime-ubuntu24.04
WORKDIR /app
ENV PYTHONUNBUFFERED=1
RUN apt update && apt install -y python3-venv python3-pip ffmpeg
COPY requirements.txt .
RUN python3 -m venv venv
RUN ./venv/bin/pip3 install --no-cache-dir -r requirements.txt
COPY jaa.py ./
COPY main.py ./
COPY app ./app
COPY plugins ./plugins
COPY static ./static
COPY resources ./resources
EXPOSE 4990
RUN mkdir -p /app/files_processing/in && mkdir -p /app/files_processing/out && mkdir -p /app/models && mkdir -p /app/options && mkdir -p /app/external_prompt
CMD ["./venv/bin/python3", "-m", "uvicorn", "main:app", "--host=0.0.0.0", "--port=4990", "--log-level=info", "--log-config=resources/log_config.yaml"]