Spaces:
Sleeping
Sleeping
Download Dockerfile from HBDing/LayoutPainter: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/spaces/HBDing/LayoutPainter/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HBDing/LayoutPainter/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HBDing/LayoutPainter/resolve/main/Dockerfile
650 Bytes
| FROM python:3.10 | |
| RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y | |
| # Set up a new user named "user" with user ID 1000 | |
| RUN useradd -m -u 1000 user | |
| # Switch to the "user" user | |
| USER user | |
| WORKDIR /code | |
| COPY --link --chown=1000 . . | |
| RUN mkdir -p /tmp/cache/ | |
| RUN chmod a+rwx -R /tmp/cache/ | |
| ENV TRANSFORMERS_CACHE=/tmp/cache/ | |
| # RUN apt-get update && apt-get install -y libgl1 | |
| ENV HF_HOME=/home/user/huggingface | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces | |
| CMD ["python", "space.py"] | |