Spaces:
Runtime error
Runtime error
Download Dockerfile from trannam1084/Human_Detection: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/spaces/trannam1084/Human_Detection/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/trannam1084/Human_Detection/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/trannam1084/Human_Detection/resolve/main/Dockerfile
504 Bytes
| FROM python:3.10-slim | |
| WORKDIR /code | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"] |