# Use the official Python image as a base image FROM python:3.10.0-slim-buster # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 # Set the working directory in the container WORKDIR /app # Copy the dependencies file to the working directory COPY requirements.txt . # Install any dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the content of the local src directory to the working directory COPY . . # Make port 7860 available to the world outside this container EXPOSE 7860 # Define environment variable (corrected the syntax for environment variable name and value) # ENV FLASK_APP=app.py # Command to run the application CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]