Spaces:
Runtime error
Runtime error
Download Dockerfile from laichai/glowscript: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/spaces/laichai/glowscript/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/laichai/glowscript/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/laichai/glowscript/resolve/main/Dockerfile
625 Bytes
| FROM python:3.10 | |
| # Create user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Set working directory | |
| WORKDIR $HOME/app | |
| # Install requirements | |
| COPY --chown=user requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Copy app files | |
| COPY --chown=user . . | |
| # Expose Port | |
| EXPOSE 8501 | |
| # --- THE FIX: Shell Command Format (No brackets) --- | |
| CMD streamlit run app.py --server.port 8501 --server.address 0.0.0.0 --server.headless true --server.enableCORS false --server.enableXsrfProtection false | |