Skip to content

Commit

Permalink
#62 removed obsolete volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
jammsen committed Jan 9, 2025
1 parent 56b72e0 commit b323364
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
# Gameserver-start-settings-overrides
SERVER_STEAM_ACCOUNT_TOKEN=""

VOLUME ["${GAME_PATH}", "${STEAMCMD_PATH}", "${WINEDATA_PATH}"]
VOLUME ["${GAME_PATH}"]

EXPOSE 8766/udp 27015/udp 27016/udp

Expand All @@ -61,7 +61,8 @@ COPY --chmod=644 configs/server.cfg.example /
COPY --chmod=755 gosu-amd64 /usr/local/bin/gosu

RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime \
&& echo $TIMEZONE > /etc/timezone
&& echo $TIMEZONE > /etc/timezone \
&& mkdir -p ${WINEPREFIX}

ENTRYPOINT ["/entrypoint.sh"]
CMD ["/scripts/servermanager.sh"]
6 changes: 3 additions & 3 deletions scripts/servermanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ function isWineinBashRcExistent() {

function setupWineInBashRc() {
ei ">>> Setting up Wine in bashrc"
mkdir -p /winedata/WINE64
if [ ! -d /winedata/WINE64/drive_c/windows ]; then
mkdir -p "$WINEPREFIX"
if [ ! -d "$WINEPREFIX"/drive_c/windows ]; then
# shellcheck disable=SC2164
cd /winedata
cd "$WINEDATA_PATH"
ei ">>> Setting up WineConfig and waiting 15 seconds"
winecfg > /dev/null 2>&1
sleep 15
Expand Down

0 comments on commit b323364

Please sign in to comment.