Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec45109bf0 |
+4
-5
@@ -5,14 +5,13 @@ FROM eclipse-temurin:17-jdk
|
||||
WORKDIR /server
|
||||
|
||||
# Copy modpack files
|
||||
COPY modpack/ /server/
|
||||
COPY modpack/. .
|
||||
|
||||
# Copy configuration files
|
||||
COPY configuration/ /server/
|
||||
COPY configuration/. .
|
||||
|
||||
# Make run.sh executable (check if it exists first)
|
||||
RUN if [ -f run.sh ]; then chmod +x run.sh; fi && \
|
||||
if [ -f /server/run.sh ]; then chmod +x /server/run.sh; fi
|
||||
RUN chmod +x run.sh
|
||||
|
||||
# Expose the default Minecraft port (25565)
|
||||
EXPOSE 25565
|
||||
@@ -21,4 +20,4 @@ EXPOSE 25565
|
||||
EXPOSE 25575
|
||||
|
||||
# Start the server using run.sh
|
||||
ENTRYPOINT ["./run.sh"]
|
||||
ENTRYPOINT ["/server/run.sh"]
|
||||
|
||||
Reference in New Issue
Block a user