| LABEL maintainer=Clement Verna <cverna@fedoraproject.org> |
| ENV DISTTAG=f44container FGC=f44 FBR=f44 |
| ADD fedora-20260426.tar / # buildkit |
| CMD ["/bin/bash"] |
| RUN /bin/sh -c dnf install -y --setopt=install_weak_deps=False bluechi-controller python3-bluechi python3 python3-gobject dbus-daemon curl && dnf clean all # buildkit |
| RUN /bin/sh -c curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=/usr/local/bin sh # buildkit |
| RUN /bin/sh -c mkdir -p /run/dbus && dbus-uuidgen > /etc/machine-id # buildkit |
| COPY bluechi-dbus.conf /etc/dbus-1/system.d/org.eclipse.bluechi.conf # buildkit |
| COPY bluechi-controller.conf /etc/bluechi/controller.conf # buildkit |
| COPY pyproject.toml uv.lock /app/ # buildkit |
| RUN /bin/sh -c uv venv --system-site-packages /app/.venv && uv sync --frozen --no-dev --no-cache --project /app # buildkit |
| COPY app/ /app/ # buildkit |
| WORKDIR /app |
| ENV SERVICE_CONTROL_CONFIG=/service-control-config.yml |
| COPY entrypoint.sh /entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| EXPOSE [2020/tcp 8000/tcp] |
| ENTRYPOINT ["/entrypoint.sh"] |