Skip to content

Commit

Permalink
Merge branch 'wip'
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Jun 12, 2024
2 parents 3ccc3e3 + 8d7d4ea commit a8de249
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docs: https://developer.valvesoftware.com/wiki/SteamCMD

# Use the latest version of Ubuntu as the base image
FROM ubuntu:latest
FROM ubuntu:18.04

# Define variables for the username, volume directory, and game
ENV USERNAME=steam
Expand Down Expand Up @@ -40,8 +40,7 @@ RUN mkdir -p $HOME/.steam && \
# Expose the necessary ports for the game
WORKDIR /opt/$USERNAME/$INSTALL_DIR


# Copy configs, Metamod, Stripper2 and AMX.
# Copy the entrypoint.sh script to the container along with the game configuration files
COPY --chown=steam:steam $CONFIG_DIR $MOD
COPY --chown=steam:steam ./entrypoint.sh ./entrypoint.sh

Expand All @@ -55,7 +54,7 @@ EXPOSE 27015/udp
ENTRYPOINT ["./entrypoint.sh", "-timeout 3"]

# Default start parameters.
CMD ["+maxplayers 12", "+map cs_italy"]
CMD ["-game cstrike", "+maxplayers 12", "+map cs_italy"]

RUN ls $MOD -la

2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ fi

echo Starting server...

./hlds_linux "$@"
./hlds_run "$@"

0 comments on commit a8de249

Please sign in to comment.