attemped fix
This commit is contained in:
+4
-3
@@ -10,8 +10,9 @@ COPY modpack/ /server/
|
|||||||
# Copy configuration files
|
# Copy configuration files
|
||||||
COPY configuration/ /server/
|
COPY configuration/ /server/
|
||||||
|
|
||||||
# Make run.sh executable
|
# Make run.sh executable (check if it exists first)
|
||||||
RUN chmod +x run.sh
|
RUN if [ -f run.sh ]; then chmod +x run.sh; fi && \
|
||||||
|
if [ -f /server/run.sh ]; then chmod +x /server/run.sh; fi
|
||||||
|
|
||||||
# Expose the default Minecraft port (25565)
|
# Expose the default Minecraft port (25565)
|
||||||
EXPOSE 25565
|
EXPOSE 25565
|
||||||
@@ -20,4 +21,4 @@ EXPOSE 25565
|
|||||||
EXPOSE 25575
|
EXPOSE 25575
|
||||||
|
|
||||||
# Start the server using run.sh
|
# Start the server using run.sh
|
||||||
ENTRYPOINT ["/server/run.sh"]
|
ENTRYPOINT ["./run.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user