FROM python:3.10-alpine

# Install necessary system dependencies
RUN apk add --no-cache gcc musl-dev linux-headers

WORKDIR /app

# Copy the entire repository to the container
COPY . .

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Expose ports if needed (not required for stdio transport)

CMD ["python", "pubmed_server.py"]
