Added a second container that runs nightly server builds.

This commit is contained in:
surrealtm
2025-08-20 21:28:02 +02:00
parent dd943bcb8e
commit 0e3ba7ab8a
4 changed files with 49 additions and 10 deletions

View File

@@ -1,5 +1,13 @@
FROM debian:12.11-slim
# The server version can be either 'nightly' or 'stable' and will differ in the
# executable that is downloaded from github. These arguments are used at build-time
ARG SERVER_VERSION
ARG SERVER_PORT
# This one is used at run-time
ENV SERVER_VERSION ${SERVER_VERSION}
RUN apt-get update && apt-get install -y wget
ENV MAX_LOGS="20"
@@ -14,8 +22,8 @@ COPY ./scripts/download_server.sh ./
COPY ./scripts/server_script.sh ./
RUN chmod 777 ./*.sh
RUN ./download_server.sh
RUN ./download_server.sh $SERVER_VERSION
CMD ["./server_script.sh"]
CMD ./server_script.sh ${SERVER_VERSION}
EXPOSE 9876
EXPOSE $SERVER_PORT