docker: remove broken dockerfiles, add a dockerignore so images aren't 40GB large

This commit is contained in:
Tyler Wilding
2026-03-20 20:10:46 -04:00
parent 9fb8a1dc27
commit 96f944f971
3 changed files with 8 additions and 48 deletions
+8
View File
@@ -0,0 +1,8 @@
.cache/
.git/
build/
decompiler_out/
failures/
iso_data/
out/
log/
-28
View File
@@ -1,28 +0,0 @@
FROM archlinux:latest
RUN pacman -Syyu --noconfirm --needed cmake libpulse base-devel nasm python git libx11 libxrandr libxinerama libxcursor libxi
# makepkg user and workdir
ARG user=jak
RUN useradd --system --create-home $user \
&& echo "$user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$user
USER $user
WORKDIR /home/$user
# Install yay
RUN git clone https://aur.archlinux.org/yay.git \
&& cd yay \
&& makepkg -sri --needed --noconfirm \
&& cd \
# Clean up
&& rm -rf .cache yay
RUN yay --noconfirm -S go-task
RUN mkdir /home/$user/jak-project/
COPY --chown=jak:jak . /home/$user/jak-project
RUN git config --global --add safe.directory /home/jak/jak-project
WORKDIR /home/$user/jak-project
RUN cmake -B build && cmake --build build -j 8
-20
View File
@@ -1,20 +0,0 @@
FROM fedora:latest
RUN dnf install -y curl cmake python lld clang nasm libX11-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel pulseaudio-libs-devel
RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
ARG user=jak
RUN useradd -m -d /home/${user} ${user}
USER $user
WORKDIR /home/$user
RUN mkdir /home/$user/jak-project/
COPY --chown=jak:jak . /home/$user/jak-project
WORKDIR /home/$user/jak-project
RUN cmake -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=lld" -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -B build
RUN cmake --build build -j$(nproc)