CoolFace
Apppublic

newmark01/EventDataEtractor

sourceHugging Facemitupdated 10mo agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1# Use an official Python 3.10 slim-buster image2FROM python:3.10-slim3 4# Set the working directory in the container5WORKDIR /code6 7# Copy the requirements file first to leverage Docker layer caching8COPY requirements.txt .9 10# Install Python dependencies11RUN pip install --no-cache-dir --upgrade pip12RUN pip install --no-cache-dir -r requirements.txt13 14# --- Install the spaCy Model ---15# This is the most reliable way for Docker.16RUN python -m spacy download en_core_web_md17 18# Copy the rest of the application code into the container19COPY . .20 21# --- Container Configuration ---22# Expose the port (7860 is the default for Hugging Face Spaces)23EXPOSE 786024 25# Set the command to run the application using uvicorn26# This command tells uvicorn to run the 'app' object from the 'app.py' file.27CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]