FROM debian:trixie-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
        ostree \
        flatpak \
        git \
        curl \
        ca-certificates \
        gnupg \
    && rm -rf /var/lib/apt/lists/*

# yq (mikefarah, Go-Binary) zum Parsen von apps.yaml
RUN curl -sSL -o /usr/local/bin/yq \
        https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 \
    && chmod +x /usr/local/bin/yq

WORKDIR /app
COPY sync.sh /app/sync.sh
RUN chmod +x /app/sync.sh

ENTRYPOINT ["/app/sync.sh"]