Download Dockerfile from Daniton/mc-test: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/Daniton/mc-test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Daniton/mc-test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Daniton/mc-test/resolve/main/Dockerfile
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"] | |