Add Dockerfile
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal 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"]
|
||||||
Reference in New Issue
Block a user