# Docketfile goes in root directory Use an official Python runtime as a parent image FROM python:3.9-slim-buster # Set the working directory in the container to /app # All subsequent commands will be run relative to /app WORKDIR /app # Copy all files from your Space's root into the container's /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Make port 7860 available to the world outside this container EXPOSE 7860 # Command to run the Flask application # Now that app.py is in src/, we need to specify its path relative to WORKDIR /app CMD ["python", "src/app.py"]