Spaces:
Sleeping
Sleeping
Download Dockerfile from mzimm003/PlayChessVsAI: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/spaces/mzimm003/PlayChessVsAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mzimm003/PlayChessVsAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mzimm003/PlayChessVsAI/resolve/main/Dockerfile
558 Bytes
| FROM python:3.8.12 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --upgrade pip | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| RUN git clone https://github.com/mzimm003/Chess /home/user/Chess | |
| RUN pip install /home/user/Chess | |
| COPY --chown=user . /app | |
| EXPOSE 8501 | |
| CMD streamlit run app.py \ | |
| --server.headless true \ | |
| --server.enableCORS false \ | |
| --server.enableXsrfProtection false \ | |
| --server.fileWatcherType none |