archy/image-recipe/Dockerfile.build
2026-01-24 22:59:20 +00:00

42 lines
791 B
Docker

# Docker build image for Archipelago OS image building
# Can be used on macOS or Linux
FROM alpine:3.19
# Install build dependencies
RUN apk add --no-cache \
bash \
git \
alpine-sdk \
abuild \
alpine-conf \
syslinux \
xorriso \
squashfs-tools \
grub \
grub-efi \
mtools \
dosfstools \
e2fsprogs \
rsync \
curl \
wget \
ca-certificates \
&& rm -rf /var/cache/apk/*
# Install Rust for backend compilation
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Install Node.js for frontend build
RUN apk add --no-cache nodejs npm
# Setup abuild
RUN abuild-keygen -a -n || true
# Set working directory
WORKDIR /workspace
# Default command
CMD ["/bin/bash"]