File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ {"image" :" mcr.microsoft.com/devcontainers/base:ubuntu" }
Original file line number Diff line number Diff line change 1+ # Use the official Arch Linux image as the base
2+ FROM archlinux:latest
3+
4+ # Update system and install necessary packages
5+ RUN pacman -Syu --noconfirm && \
6+ pacman -S --noconfirm git archiso grub
7+
8+ # Create a directory for the workspace
9+ WORKDIR /workdir
10+
11+ # Copy the entire repository into the container
12+ COPY . .
13+
14+ # Build the Arch ISO
15+ RUN mkarchiso -v -w workdir/ -o out/ .
16+
17+ # Rename the generated ISO to Arch.iso (if only one ISO is generated)
18+ RUN iso_file=$(ls out/*.iso | head -n 1) && \
19+ mv $iso_file out/Arch.iso
20+
21+ # Set the output directory as a volume so you can retrieve the ISO later
22+ VOLUME /workdir/out
23+
24+ # The default command just keeps the container running
25+ CMD [ "sleep", "infinity" ]
You can’t perform that action at this time.
0 commit comments