apt-ostree-builder/Dockerfile
robojerk a89418653d
Some checks failed
Comprehensive CI/CD Pipeline / Build and Test (push) Failing after 1m29s
Comprehensive CI/CD Pipeline / Security Audit (push) Failing after 6s
Comprehensive CI/CD Pipeline / Package Validation (push) Failing after 48s
Test Workflow / test (push) Successful in 1s
Comprehensive CI/CD Pipeline / Status Report (push) Has been skipped
Fix CI: Remove non-existent composefs package
- Remove composefs from CI dependencies (not available in Debian)
- Update package control file to remove composefs dependency
- Update Dockerfile to remove composefs
- Update CI summary to reflect correct dependencies
2025-09-09 22:22:06 -07:00

52 lines
1,021 B
Docker

FROM debian:unstable-slim
# Set build arguments
ARG release_name=unstable
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
ENV RUST_BACKTRACE=1
ENV CARGO_TERM_COLOR=always
# Install Rust toolchain
RUN apt update && \
apt install -y curl ca-certificates && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
. $HOME/.cargo/env && \
rustup default stable && \
rustup target add x86_64-unknown-linux-gnu
# Install build dependencies
RUN apt update && \
apt install -y \
build-essential \
pkg-config \
libssl-dev \
libostree-dev \
libostree-1-1 \
ostree \
podman \
qemu-utils \
parted \
grub-efi-amd64 \
systemd-boot \
dracut \
zstd \
cpio \
tar \
curl \
git \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /workspace
# Copy source code
COPY . .
# Set PATH to include Rust
ENV PATH="/root/.cargo/bin:${PATH}"
# Default command
CMD ["bash"]