funapi / Dockerfile
imperialwool's picture
Update Dockerfile
74924ab
raw history blame
No virus
681 Bytes
FROM python:3.11.1-bullseye
USER root
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
COPY . /app
RUN chmod -R 777 /app
WORKDIR /app
RUN apt update && apt install ffmpeg -y
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
RUN python3 -m pip install -U --no-cache-dir pip setuptools wheel
RUN python3 -m pip install --force-reinstall --no-cache-dir https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
RUN mkdir -p /.cache/huggingface/hub
RUN chown -R root:root /.cache/huggingface/hub
RUN chmod -R 777 /.cache/huggingface/hub
RUN mkdir -p /.cache/yt-dlp
RUN chown -R root:root /.cache/yt-dlp
RUN chmod -R 777 /.cache/yt-dlp
CMD ["python", "app.py"]