Download Dockerfile from j-js/GameAI: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/j-js/GameAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/j-js/GameAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/j-js/GameAI/resolve/main/Dockerfile
526 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_NO_CACHE_DIR=1 | |
| COPY requirements.txt /app/requirements.txt | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && pip install --upgrade pip \ | |
| && pip install -r /app/requirements.txt \ | |
| && apt-get purge -y build-essential \ | |
| && apt-get autoremove -y \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |