Files
forge-kasm/Dockerfile
Ryan Hamilton 2c38e29467
Some checks failed
Build & Push Forge-Kasm / docker (push) Failing after 21s
Update Dockerfile to use the correct base image for KasmVNC
2025-06-05 09:17:38 -05:00

27 lines
720 B
Docker

FROM linuxserver/docker-baseimage-kasmvnc:ubuntujammy
USER root
# Install Java and tools
RUN apt update && apt install -y openjdk-17-jre wget bzip2 && rm -rf /var/lib/apt/lists/*
# Create Forge directory
RUN mkdir -p /opt/forge
# Download the latest Forge snapshot at build time
WORKDIR /tmp/forge-download
RUN wget -r -l1 -np -nd https://downloads.cardforge.org/dailysnapshots/ -A 'forge-gui-desktop-*.tar.bz2' && \
SNAPSHOT=$(ls forge-gui-desktop-*.tar.bz2 | head -n 1) && \
tar -xjf "$SNAPSHOT" && \
mv forge-gui-desktop-*.jar /opt/forge/forge.jar && \
rm -rf /tmp/forge-download
# Add launcher
COPY start.sh /start.sh
RUN chmod +x /start.sh
USER 1000
WORKDIR /home/kasm-user
CMD ["/start.sh"]