# Use an official Python runtime as a parent image FROM python:3.11-slim # Set the working directory in the container WORKDIR /app # Install git and other necessary dependencies RUN apt-get update && apt-get install -y \ git \ && rm -rf /var/lib/apt/lists/* # Install poetry RUN pip install poetry # Copy the current directory contents into the container at /app COPY . /app # Install project dependencies RUN poetry config virtualenvs.create false \ && poetry install --no-interaction --no-ansi # Run the application CMD ["python", "src/autometabuilder/main.py"]