rouhim/steamcmd-wine

By rouhim

Updated 7 days ago

This base container image provides steamcmd and the latest wine as a secure container image

Image
0

742

steamcmd-wine-container-image

This base container image provides everything you need to run a windows based dedicated server which is to be installed via SteamCMD. It's based on the latest packages provided by ubuntu:devel and is built weekly.

Docker Image Version

Ubuntu Package Version (for series)

How to use

FROM docker.io/rouhim/steamcmd-wine:latest
USER $USER

# Set the following environment variables: STEAM_APP_ID, STARTUP_COMMAND

# STEAM_APP_ID: The Steam App ID of the game server to install
ENV STEAM_APP_ID "123456789"

# STARTUP_COMMAND:  The command to run to start the server, 
#                   the current working directory is the server directory ($SERVER_DIR)
ENV STARTUP_COMMAND "wine server.exe -configpath "$SERVER_CONFIG_DIR""

# Optional pre.sh script to run before the server starts
COPY pre.sh $USER_HOME/pre.sh

# Optional post.sh script to run after the server stops
COPY post.sh $USER_HOME/post.sh

If you want to install additional packages via apt, make sure to become USER root before executing apt commands. Obviously, you should also switch back to USER $USER after installing the packages.

Environment Variables

The following environment variables are available in the base image:

VariableDefault ValueDescription
USERubuntuThe user to run the server as
GROUPubuntuThe group to run the server as
USER_HOME/home/$USERThe home directory of the user
STEAMCMD$USER_HOME/steamcmd/steamcmd.shThe path to the steamcmd executable
SERVER_DIR/dataThe directory where the server files are stored
SERVER_CONFIG_DIR/configThe directory where the server configuration files are stored
FAST_BOOTfalseIf set to true, the server will not be installed / updated / validated on start

Docker Pull Command

docker pull rouhim/steamcmd-wine