Spaces:
Runtime error
Runtime error
Download Dockerfile from Nechba/EmotionDetection: direct link, hf CLI and curl.
- Browser
- Download file 880 Bytes
-
https://huggingface.co/spaces/Nechba/EmotionDetection/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Nechba/EmotionDetection/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Nechba/EmotionDetection/resolve/main/Dockerfile
880 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.9.13 | |
| # Create a new user with a specific UID and home directory | |
| RUN useradd -m -u 1000 user | |
| # Set the user for subsequent instructions | |
| USER user | |
| # Update the PATH environment variable | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the requirements file into the container | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| # Install system dependencies (including FFmpeg) | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy the current directory contents into the container at /app | |
| COPY --chown=user . /app | |
| # Install Gunicorn (instead of Uvicorn) | |
| RUN pip install --user gunicorn | |
| # Command to run the application using Gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"] |