Add Dockerfile

This commit is contained in:
2025-06-03 19:55:45 +00:00
parent 48f3c44fc2
commit cfab78751f

21
Dockerfile Normal file
View File

@@ -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"]