Spaces:
Running on Zero
Running on Zero
Download Dockerfile from lsmpp/PixText-Studio: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/spaces/lsmpp/PixText-Studio/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lsmpp/PixText-Studio/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lsmpp/PixText-Studio/resolve/main/Dockerfile
531 Bytes
| FROM python:3.12-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends build-essential libgl1 libglib2.0-0 libraqm0 && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /home/user/app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user . . | |
| USER user | |
| ENV HOME=/home/user PYTHONUNBUFFERED=1 PYTHONPATH=/home/user/app/vendor HF_HOME=/home/user/.cache/huggingface | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |