Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the itzg/minecraft-server image as the base
|
| 2 |
+
FROM itzg/minecraft-server
|
| 3 |
+
|
| 4 |
+
# While we cannot directly translate the -p or --name flags into a Dockerfile
|
| 5 |
+
# those are runtime parameters, you can specify EXPOSE to hint at ports to be mapped
|
| 6 |
+
EXPOSE 7860
|
| 7 |
+
|
| 8 |
+
# The ENTRYPOINT or CMD from the base image (itzg/minecraft-server) is already set to run the server
|
| 9 |
+
# If you need to customize server properties or configurations, you could add COPY or RUN instructions here
|
| 10 |
+
# For example:
|
| 11 |
+
# COPY server.properties /data/server.properties
|
| 12 |
+
|
| 13 |
+
# Note: Environment variables can be set with ENV commands if you need to configure the Minecraft server further
|
| 14 |
+
# ENV EULA=TRUE
|