mc-test / Dockerfile
Daniton's picture
Update Dockerfile
9b9a86e
raw
history blame
332 Bytes
# Use the official OpenJDK 17 image as the base image
FROM openjdk:17-jdk
# Set the working directory to /minecraft
WORKDIR /minecraft
# Copy the server.jar file to the container
COPY server.jar /minecraft/server.jar
# Expose the Minecraft server port
EXPOSE 7860
# Start the Minecraft server
CMD ["java", "-jar", "server.jar"]