Spaces:
Sleeping
Sleeping
Download Dockerfile from Rahul4112/BackDropStudio: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/spaces/Rahul4112/BackDropStudio/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Rahul4112/BackDropStudio/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Rahul4112/BackDropStudio/resolve/main/Dockerfile
699 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV BACKDROPSTUDIO_MAX_WORKERS=1 | |
| ENV U2NET_HOME=/app/app/temp/u2net | |
| ENV NUMBA_CACHE_DIR=/app/app/temp/numba | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgomp1 \ | |
| libglib2.0-0 \ | |
| libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user app/requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| COPY --chown=user . /app | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |