Download Dockerfile from fawadrashid/Object_Detection_With_Audio: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/fawadrashid/Object_Detection_With_Audio/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/fawadrashid/Object_Detection_With_Audio/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fawadrashid/Object_Detection_With_Audio/resolve/main/Dockerfile
496 Bytes
| FROM python:3.9-slim | |
| 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 | |
| COPY ./requirements.txt ~/app/requirements.txt | |
| USER root | |
| RUN rm /var/lib/apt/lists/* -vf | |
| RUN apt-get clean | |
| RUN apt-get update | |
| RUN apt-get upgrade | |
| RUN apt-get install -y wget zip unzip uvicorn espeak-ng | |
| USER user | |
| COPY . . | |
| USER root | |
| RUN chmod 777 ~/app/* | |
| USER user | |
| RUN pip3 install -r requirements.txt | |
| CMD ["python", "app.py"] |