Download Dockerfile from Aissistant2/youtube-transcript-proxy: direct link, hf CLI and curl.
- Browser
- Download file 678 Bytes
-
https://huggingface.co/spaces/Aissistant2/youtube-transcript-proxy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Aissistant2/youtube-transcript-proxy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Aissistant2/youtube-transcript-proxy/resolve/main/Dockerfile
678 Bytes
| FROM ubuntu:24.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y python3 python3-pip wget gnupg2 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Chrome | |
| RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
| && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \ | |
| && apt-get update && apt-get install -y google-chrome-stable \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip3 install --break-system-packages playwright | |
| RUN playwright install chromium --with-deps || true | |
| WORKDIR /app | |
| COPY app.py /app/app.py | |
| EXPOSE 7860 | |
| CMD ["python3", "app.py"] | |