Update Dockerfile
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -2,16 +2,21 @@ FROM ghcr.io/linuxserver/baseimage-kasmvnc-ubuntu-jammy:latest
|
||||
|
||||
USER root
|
||||
|
||||
# Install Java 17 and utilities
|
||||
# Install Java and tools
|
||||
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
|
||||
# Create Forge directory
|
||||
RUN mkdir -p /opt/forge
|
||||
|
||||
# Link persistent storage to Forge expected location
|
||||
RUN ln -s /config /home/kasm-user/.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 startup script
|
||||
# Add launcher
|
||||
COPY start.sh /start.sh
|
||||
RUN chmod +x /start.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user