Download Dockerfile from tygiorgio/MLBmod: direct link, hf CLI and curl.
- Browser
- Download file 849 Bytes
-
https://huggingface.co/spaces/tygiorgio/MLBmod/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tygiorgio/MLBmod/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tygiorgio/MLBmod/resolve/main/Dockerfile
849 Bytes
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y \ | |
| libglib2.0-0 \ | |
| libnss3 \ | |
| libnspr4 \ | |
| libdbus-1-3 \ | |
| libatk1.0-0 \ | |
| libatk-bridge2.0-0 \ | |
| libcups2 \ | |
| libdrm2 \ | |
| libxcb1 \ | |
| libxkbcommon0 \ | |
| libatspi2.0-0 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxfixes3 \ | |
| libxrandr2 \ | |
| libgbm1 \ | |
| libpango-1.0-0 \ | |
| libcairo2 \ | |
| libasound2 \ | |
| libx11-6 \ | |
| libx11-xcb1 \ | |
| fonts-liberation \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . $HOME/app | |
| RUN playwright install chromium | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |