Skip to content

Commit 6a680b1

Browse files
Add a dockerfile, so it can be built locally.
1 parent c43e0b8 commit 6a680b1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"image":"mcr.microsoft.com/devcontainers/base:ubuntu"}

dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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" ]

0 commit comments

Comments
 (0)