NotebookMg / Dockerfile
TheM1N9
first commit
e56e019
raw
history blame
381 Bytes
FROM python:3.9
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Install ffmpeg for pydub
RUN apt-get update && apt-get install -y ffmpeg
COPY . /code
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]