# Use the official Python 3.10 base image FROM python:3.10.12-slim # Install system dependencies RUN apt-get update && apt-get install -y \ imagemagick \ libgl1 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Set the working directory WORKDIR /app # Copy the application files to the container COPY . /app # Copy the model file into the container COPY 1.tflite /app/1.tflite # Install Python dependencies RUN pip install --no-cache-dir \ opencv-python numpy imutils tensorflow wand flask pillow # Expose the port Flask will run on EXPOSE 7860 # Run the application CMD ["python", "app.py"]