24 lines
459 B
Docker
24 lines
459 B
Docker
# Use an official OpenJDK 21 image
|
|
FROM eclipse-temurin:21-jdk
|
|
|
|
# Set working directory
|
|
WORKDIR /server
|
|
|
|
# Copy modpack files
|
|
COPY modpack/. .
|
|
|
|
# Copy configuration files
|
|
COPY configuration/. .
|
|
|
|
# Make run.sh executable (check if it exists first)
|
|
RUN chmod +x /server/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"]
|