# Use the official Python image | |
FROM python:3.10-slim | |
# Set the working directory inside the container | |
WORKDIR /app | |
# Copy the requirements file into the container | |
COPY requirements.txt . | |
# Install the dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy the app code into the container | |
COPY . . | |
# Ensure the setup script is executable | |
RUN chmod +x setup.sh | |
# Run the setup script to clone the repository | |
RUN ./setup.sh | |
# Set the command to run the app | |
CMD ["python", "app.py"] | |