# Use an official Python runtime as a parent image # FROM python:3.7 # # Set the working directory to /app # WORKDIR /app # # Copy the current directory contents into the container at /app # COPY . /app # # Install any needed packages specified in requirements.txt # RUN pip install --no-cache-dir -r requirements.txt # # Expose port 8000 for Hugging Face Inference API # EXPOSE 8000 # # Run the application when the container launches FROM python:3.9 WORKDIR /code COPY . /code RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # Assuming your Django project is inside the "Interface" folder WORKDIR /code/Interface # Run the Django development server CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]