File size: 381 Bytes
93a7b2f 0633b16 ed7b049 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
FROM python:3.13.5
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
RUN pip install git+https://github.com/openai/whisper.git
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /app
EXPOSE 7860
CMD exec gunicorn --bind 0.0.0.0:7860 --workers 5 app:app |