Spaces:
Running on Zero
Running on Zero
Download Dockerfile from Willie999/trapSTAR-interface: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/Willie999/trapSTAR-interface/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Willie999/trapSTAR-interface/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Willie999/trapSTAR-interface/resolve/main/Dockerfile
501 Bytes
| FROM python:3.11-slim | |
| # Set up user privileges for Hugging Face Spaces | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| # Copy dependency tracking lists and install packages | |
| COPY --chown=user requirements.txt $HOME/app/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy application script logic | |
| COPY --chown=user . $HOME/app | |
| # Expose the standard Gradio port | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |