Spaces:
Sleeping
Sleeping
riteshraut commited on
Commit ·
79ff4ff
1
Parent(s): 394c967
fix
Browse files3 unmodified lines4567891011121310 unmodified lines2425262728293 unmodified lines# Set the working directory in the containerWORKDIR /codeENV HF_HOME=/tmp/huggingface_cache# Copy the system dependencies file and install them# We need tesseract for OCR on images (used by unstructured)COPY packages.txt .RUN apt-get update && apt-get install -y --no-install-recommends $(cat packages.txt) && \rm -rf /var/lib/apt/lists/*10 unmodified lines# Expose the port that Hugging Face Spaces usesEXPOSE 7860# Command to run your application using gunicorn (a production-ready server)# It binds the app to port 7860, which is the standard for HF Spaces.CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]3 unmodified lines456789101112131410 unmodified lines25262728293 unmodified lines# Set the working directory in the containerWORKDIR /code# Set writable cache directories for Hugging Face models and NLTK dataENV HF_HOME=/tmp/huggingface_cacheENV NLTK_DATA=/tmp/nltk_data# Copy the system dependencies file and install themCOPY packages.txt .RUN apt-get update && apt-get install -y --no-install-recommends $(cat packages.txt) && \rm -rf /var/lib/apt/lists/*10 unmodified lines# Expose the port that Hugging Face Spaces usesEXPOSE 7860# Command to run your application using gunicornCMD ["gunicorn", "--bind", "0.spacing_token.0:7860", "app:app"]
Dockerfile+4-4