mirror of
https://github.com/DerTyp7/glassminers-server-docker.git
synced 2025-10-30 13:17:11 +01:00
Added a second container that runs nightly server builds.
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -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
|
||||
Reference in New Issue
Block a user