Download Dockerfile from amit0987/try_docker_selinium: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/spaces/amit0987/try_docker_selinium/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/amit0987/try_docker_selinium/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/amit0987/try_docker_selinium/resolve/main/Dockerfile
1.32 kB
| # Use an Ubuntu base image, which is officially supported by Playwright | |
| FROM ubuntu:20.04 | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| libglib2.0-0 \ | |
| libnss3 \ | |
| libnspr4 \ | |
| libdbus-1-3 \ | |
| libatk1.0-0 \ | |
| libatk-bridge2.0-0 \ | |
| libcups2 \ | |
| libx11-6 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxext6 \ | |
| libxfixes3 \ | |
| libxrandr2 \ | |
| libgbm1 \ | |
| libxcb1 \ | |
| libxkbcommon0 \ | |
| libpango-1.0-0 \ | |
| libcairo2 \ | |
| libasound2 \ | |
| libatspi2.0-0 \ | |
| libx11-xcb1 \ | |
| libxcursor1 \ | |
| libgtk-3-0 \ | |
| libpangocairo-1.0-0 \ | |
| libcairo-gobject2 \ | |
| libgdk-pixbuf2.0-0 \ | |
| libicu-dev \ | |
| libatomic1 \ | |
| libxslt1-dev \ | |
| libwoff2-1.0.2 \ | |
| libevent-2.1-7 \ | |
| libopus0 \ | |
| libwebpdemux2 \ | |
| libharfbuzz-icu0 \ | |
| libjpeg8 \ | |
| libwebpmux3 \ | |
| libenchant-2-2 \ | |
| libsecret-1-0 \ | |
| libhyphen0 \ | |
| libpcre2-8-0 \ | |
| libnghttp2-14 \ | |
| libegl1 \ | |
| libglx0 \ | |
| libgudev-1.0-0 \ | |
| libffi7 \ | |
| libevdev2 \ | |
| libgles2 \ | |
| libx264-155 | |
| # Install Playwright and its dependencies | |
| RUN pip3 install playwright && playwright install chromium | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the Python script into the container | |
| COPY selimium_try.py /app/ | |
| # Command to run the Python script | |
| CMD |