Spaces:
Sleeping
Sleeping
Download Dockerfile from Hoctar77/fedstylevalidator: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/spaces/Hoctar77/fedstylevalidator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Hoctar77/fedstylevalidator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Hoctar77/fedstylevalidator/resolve/main/Dockerfile
588 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements-space.txt ./ | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements-space.txt | |
| COPY --chown=user app.py ./ | |
| COPY --chown=user .streamlit ./.streamlit | |
| COPY --chown=user src ./src | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860", "--server.enableXsrfProtection=false"] | |