FROM python:3.9-slim

WORKDIR /app

# Copy test files and requirements
COPY . /app/
COPY ../generate_web_config_yaml.py /app/
COPY ../merge_yaml.py /app/
COPY ../generate_prometheus_config_yaml.py /app/

# Install dependencies
RUN pip install -r requirements.txt

# Set the command to run tests
CMD ["pytest", "-v"] 