FROM python:3.11-slim

COPY packs /source/packs
COPY scripts/load_core_pack.py /scripts/load_core_pack.py
COPY docker/init-packs.sh /init-packs.sh

RUN pip install --no-cache-dir psycopg2-binary pyyaml && \
    chmod +x /init-packs.sh

CMD ["/bin/sh", "/init-packs.sh"]
