FROM ghcr.io/linuxserver/baseimage-alpine:3.18

# Arguments
ARG MINECRAFT_VERSION
ARG FORGE_VERSION
ARG JRE_VERSION

# Build server:
COPY root /
RUN chmod +x /install.sh; chmod +x /etc/s6-overlay/s6-rc.d/init-forge/run; chmod +x /etc/s6-overlay/s6-rc.d/init-forge/finish; /install.sh ${MINECRAFT_VERSION} ${FORGE_VERSION} ${JRE_VERSION}

