simple-cli/Containerfile
joe 6aa6d32e1e
Some checks failed
Build Simple CLI / build (push) Failing after 1s
Add .gitignore, clean up build artifacts, add test scripts and configuration files
2025-08-12 20:13:38 -07:00

71 lines
1.5 KiB
Docker

# Simple CLI - Debian-based particle-os system
# Based on Aurora's architecture pattern
FROM debian:trixie-slim
# Install core system packages
RUN apt-get update && apt-get install -y \
systemd \
systemd-sysv \
udev \
procps \
util-linux \
mount \
passwd \
login \
bash \
coreutils \
ostree \
ostree-boot \
linux-image-amd64 \
linux-headers-amd64 \
initramfs-tools \
curl \
wget \
vim \
less \
locales \
ca-certificates \
tzdata \
podman \
skopeo \
&& rm -rf /var/lib/apt/lists/*
# Install particle-os specific packages
COPY packages/*.deb /tmp/packages/
RUN dpkg -i /tmp/packages/bootc_*.deb /tmp/packages/apt-ostree_*.deb || true && \
apt-get install -f -y && \
rm -rf /tmp/packages
# Configure locale
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
# Configure timezone
ENV TZ=UTC
# Create user
RUN useradd -m -s /bin/bash simple
# Configure OSTree
RUN mkdir -p /usr/lib/ostree-boot
# Copy configuration files (will be layered in)
COPY usr/ /usr/
COPY etc/ /etc/
COPY config/ /config/
# Set up firstboot scripts
RUN mkdir -p /usr/share/particle-os/firstboot
COPY usr/share/particle-os/firstboot/ /usr/share/particle-os/firstboot/
# Set up ujust commands
RUN mkdir -p /usr/share/particle-os/just
COPY usr/share/particle-os/just/ /usr/share/particle-os/just/
# Clean up package management files
RUN rm -f /var/lib/dpkg/info/*.postinst \
&& rm -f /var/lib/dpkg/info/*.postrm \
&& rm -f /var/lib/dpkg/info/*.prerm
# Set default command
CMD ["/bin/bash"]