From acaa93acee4147308d0080f1e21ed1f08ef6c999 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Wed, 3 Apr 2024 22:15:43 +0300 Subject: [PATCH] test --- Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eca962f..8bf8e99 100755 --- a/Dockerfile +++ b/Dockerfile @@ -70,6 +70,15 @@ WORKDIR ${APPDIR} EXPOSE 27016/udp +ARG MOD +ENV MOD=${MOD} + +COPY --chmod=755 utils/* utils/ + +RUN export LAUNCH_ARGS=$(utils/getLaunchParamsByMod.sh ${MOD}) +ENV LAUNCH_ARGS=${LAUNCH_ARGS} + +RUN echo '--------------------------- ${LAUNCH_ARGS}}' + # Set entrypoint and default command -ENTRYPOINT ["sh", "-c"] -CMD ["./hlds_run -game valve -debug +ip 0.0.0.0 -port 27016 -maxplayers 10 +map crossfire"] \ No newline at end of file +ENTRYPOINT ./hlds_run ${LAUNCH_ARGS}