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}