# Use an official Python runtime as a parent image
FROM python:3.13-slim

# Set the working directory in the container
WORKDIR /app

# Install uv
RUN pip install uv && \
    apt-get update && apt-get install -y git

# Copy the dependencies file to the working directory
COPY requirements.txt .

# Install any needed dependencies specified in requirements.txt
RUN uv pip install -r requirements.txt --system

# Copy the rest of the application's code to the working directory
COPY ./enrichment_networks.json /app/enrichment_networks.json
COPY ./enrichment.py /app/enrichment.py

# Define the command to run the application
CMD ["uv", "run", "enrichment.py"]