Spaces:
Runtime error
Runtime error
Download Dockerfile from mkManishKumar/face-recognition: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/spaces/mkManishKumar/face-recognition/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mkManishKumar/face-recognition/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mkManishKumar/face-recognition/resolve/main/Dockerfile
612 Bytes
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the current directory contents into the container at /app | |
| COPY . /app | |
| RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y && apt-get install -y python3-opencv | |
| RUN pip install gunicorn | |
| # Install any needed dependencies specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Make port 80 available to the world outside this container | |
| EXPOSE 5000 | |
| # Define environment variable | |
| ENV NAME World | |
| # Run app.py when the container launches | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] |