10 lines
339 B
Docker
10 lines
339 B
Docker
FROM python:3.10-slim
|
|
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 OMP_NUM_THREADS=2
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg libsndfile1 wget && rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install -r requirements.txt
|
|
COPY worker.py .
|
|
VOLUME ["/models"]
|
|
CMD ["python", "worker.py"]
|