Spaces:
Sleeping
Sleeping
Download Dockerfile from NextGenTech/GeneticWFM: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/NextGenTech/GeneticWFM/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NextGenTech/GeneticWFM/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NextGenTech/GeneticWFM/resolve/main/Dockerfile
449 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN useradd -m -u 1000 user | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN chown -R user:user /app | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| STREAMLIT_SERVER_PORT=7860 \ | |
| STREAMLIT_SERVER_ADDRESS=0.0.0.0 \ | |
| STREAMLIT_SERVER_ENABLE_CORS=false \ | |
| STREAMLIT_SERVER_HEADLESS=true | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py"] |