Spaces:
Paused
Paused
Update Dockerfile
Browse files1234567891011121314151617181920FROM python:3.10.9WORKDIR /codeENV TRANSFORMERS_CACHE=/tmp/cache/huggingfaceENV HF_HOME=/tmp/huggingface-cacheCOPY ./requirements.txt /code/requirements.txtRUN mkdir -p /tmp/cache/huggingface && chmod -R 777 /tmp/cache/huggingfaceRUN mkdir -p /tmp/huggingface-cache && chmod -R 777 /tmp/huggingface-cacheRUN python3 -m pip install -U -I --no-deps --no-cache-dir https://github.com/mikf/gallery-dl/archive/master.tar.gzRUN python3 -m pip install -U --no-cache-dir yt-dlpRUN apt-get update && apt-get install -y ffmpegRUN pip install --no-cache-dir --upgrade -r /code/requirements.txtCOPY . .CMD ["uvicorn", "API:app", "--host", "0.0.0.0", "--port", "7860"]123456789101112131415161718192021FROM python:3.10.9WORKDIR /codeENV TRANSFORMERS_CACHE=/tmp/cache/huggingfaceENV HF_HOME=/tmp/huggingface-cacheCOPY ./requirements.txt /code/requirements.txtRUN mkdir -p /tmp/cache/huggingface && chmod -R 777 /tmp/cache/huggingfaceRUN mkdir -p /tmp/huggingface-cache && chmod -R 777 /tmp/huggingface-cacheRUN python3 -m pip install -U -I --no-deps --no-cache-dir https://github.com/mikf/gallery-dl/archive/master.tar.gzRUN python3 -m pip install -U --no-cache-dir yt-dlpRUN python3 -U git+https://github.com/bluet/proxybroker2.gitRUN apt-get update && apt-get install -y ffmpegRUN pip install --no-cache-dir --upgrade -r /code/requirements.txtCOPY . .CMD ["uvicorn", "API:app", "--host", "0.0.0.0", "--port", "7860"]
Dockerfile+20-19