From cfab78751f18273b8f9c7369f9d4d4c333d248d5 Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Tue, 3 Jun 2025 19:55:45 +0000 Subject: [PATCH] Add Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..64cd93e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ghcr.io/linuxserver/baseimage-kasmvnc-ubuntu-jammy:latest + +USER root + +# Install Java 17 and utilities +RUN apt update && apt install -y openjdk-17-jre wget bzip2 && rm -rf /var/lib/apt/lists/* + +# Create Forge + config folders +RUN mkdir -p /opt/forge /config /home/kasm-user/.forge + +# Link persistent storage to Forge expected location +RUN ln -s /config /home/kasm-user/.forge + +# Add startup script +COPY start.sh /start.sh +RUN chmod +x /start.sh + +USER 1000 +WORKDIR /home/kasm-user + +CMD ["/start.sh"]