Download Dockerfile from navpan2/selenium: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/navpan2/selenium/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/navpan2/selenium/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/navpan2/selenium/resolve/main/Dockerfile
576 Bytes
| FROM python:3.10 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:${PATH}" | |
| WORKDIR /app | |
| COPY --chown=user . /app | |
| USER root | |
| RUN apt-get update && apt-get install -y wget unzip && \ | |
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ | |
| apt install -y ./google-chrome-stable_current_amd64.deb && \ | |
| rm google-chrome-stable_current_amd64.deb && \ | |
| apt-get clean | |
| USER user | |
| RUN pip install --trusted-host pypi.python.org -r requirements.txt | |
| COPY --chown=user . . | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |