# Use an official OpenJDK 17 image FROM eclipse-temurin:17-jdk # Set working directory WORKDIR /server # Copy server configuration files COPY configuration/. . # Copy all modpack related files COPY modpack/. . # Make run.sh executable RUN chmod +x run.sh # Expose the default Minecraft port (25565) EXPOSE 25565 # Expose the default Minecraft RCON port (25575) EXPOSE 25575 # Start the server using run.sh ENTRYPOINT ["/server/run.sh"]