# Dockerfile for building gst-plugin-zenoh on Fedora 41
FROM fedora:41
# Install system dependencies
RUN dnf install -y \
gcc \
pkg-config \
libunwind-devel \
gstreamer1-devel \
gstreamer1-plugins-base-devel \
&& dnf clean all
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
ENV PATH="/root/.cargo/bin:${PATH}"
# Install cargo-generate-rpm
RUN cargo install cargo-generate-rpm
# Set working directory
WORKDIR /build
# Build script
COPY build-in-container.sh /build-in-container.sh
RUN chmod +x /build-in-container.sh
# Entry point
CMD ["/build-in-container.sh", "rpm"]