Download Dockerfile from MarkusChatBotCorp/Markus_Chess_Bot: direct link, hf CLI and curl.
- Browser
- Download file 770 Bytes
-
https://huggingface.co/spaces/MarkusChatBotCorp/Markus_Chess_Bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MarkusChatBotCorp/Markus_Chess_Bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MarkusChatBotCorp/Markus_Chess_Bot/resolve/main/Dockerfile
770 Bytes
| FROM python:3.10-slim | |
| USER root | |
| RUN apt-get update && apt-get install -y \ | |
| wget gnupg unzip xvfb libgl1-mesa-dri libglapi-mesa libosmesa6 \ | |
| libnss3 libxss1 libasound2 libatk-bridge2.0-0 libgtk-3-0 \ | |
| chromium chromium-driver \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| DISPLAY=:99 \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| # Added -extension to Xvfb to help with rendering game elements | |
| CMD ["sh", "-c", "Xvfb :99 -screen 0 1280x720x24 -ac +extension GLX +render -noreset & python app.py"] | |