Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix entrypoint and add args to srcds #39

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bookworm/x32/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ USER ${USER}

WORKDIR ${HOMEDIR}

CMD ["bash", "entry.sh"]
ENTRYPOINT [ "./entry.sh" ]

# Expose ports
EXPOSE 27015/tcp \
Expand Down
2 changes: 1 addition & 1 deletion bookworm/x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ USER ${USER}

WORKDIR ${HOMEDIR}

CMD ["bash", "entry_x64.sh"]
ENTRYPOINT [ "./entry_x64.sh" ]

# Expose ports
EXPOSE 27015/tcp \
Expand Down
3 changes: 2 additions & 1 deletion etc/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ bash "${STEAMAPPDIR}/srcds_run" -game "${STEAMAPP}" -console -autoupdate \
-authkey "${SRCDS_WORKSHOP_AUTHKEY}" \
+servercfgfile "${SRCDS_CFG}" \
+mapcyclefile "${SRCDS_MAPCYCLE}" \
${SERVER_SECURITY_FLAG}
${SERVER_SECURITY_FLAG} \
$@
3 changes: 2 additions & 1 deletion etc/entry_x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ bash "${STEAMAPPDIR}/srcds_run_64" -game "${STEAMAPP}" -console -autoupdate \
-authkey "${SRCDS_WORKSHOP_AUTHKEY}" \
+servercfgfile "${SRCDS_CFG}" \
+mapcyclefile "${SRCDS_MAPCYCLE}" \
${SERVER_SECURITY_FLAG}
${SERVER_SECURITY_FLAG} \
$@