Download Dockerfile from PGSCOM/MatAnyone: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/spaces/PGSCOM/MatAnyone/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PGSCOM/MatAnyone/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PGSCOM/MatAnyone/resolve/main/Dockerfile
601 Bytes
| FROM python:3.10 | |
| WORKDIR /home/user/app | |
| # Instalar dependencias del sistema, reemplazando libgl1-mesa-glx con libgl1 | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| rsync \ | |
| libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| # Copiar archivos del proyecto | |
| COPY --chown=1000:1000 . /home/user/app/ | |
| # Instalar dependencias de Python | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Crear usuario | |
| RUN useradd -m -u 1000 user && chown -R user /home/user/app | |
| USER user | |
| # Comando por defecto | |
| CMD ["python", "hugging_face/app.py"] | |