Spaces:
Sleeping
Sleeping
Download Dockerfile from Figea/Sign_language: direct link, hf CLI and curl.
- Browser
- Download file 647 Bytes
-
https://huggingface.co/spaces/Figea/Sign_language/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Figea/Sign_language/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Figea/Sign_language/resolve/main/Dockerfile
647 Bytes
| FROM python:3.12-slim | |
| RUN apt-get update && \ | |
| apt-get upgrade -y && \ | |
| apt-get install ffmpeg libsm6 libxext6 -y && \ | |
| apt-get clean | |
| # Install the dependancies | |
| COPY requirements.txt / | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Download the spaCy model | |
| RUN python -m spacy download en_core_web_md | |
| # Download NLTK data | |
| RUN [ "python", "-c", "import nltk; nltk.download('wordnet', download_dir='/usr/local/nltk_data')" ] | |
| # Copy the code files | |
| COPY src / | |
| # Listen to port 7860 | |
| EXPOSE 7860 | |
| # Define the working dir in the contener | |
| WORKDIR / | |
| # Commande to start the app | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "main:app"] | |