Skip to content

Instantly share code, notes, and snippets.

@bumbummen99
Last active April 6, 2021 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bumbummen99/22113c0ff058c0a7f05e3dd99849f1fe to your computer and use it in GitHub Desktop.
Save bumbummen99/22113c0ff058c0a7f05e3dd99849f1fe to your computer and use it in GitHub Desktop.
# Use Ubuntu 20.04 LTS
FROM ubuntu:20.04
# Install common software
RUN apt update && apt install -y software-properties-common
# Add SteamCMD repository
RUN add-apt-repository multiverse \
&& dpkg --add-architecture i386
# Update software
RUN apt update && apt upgrade -y
# Install SteamCMD
RUN echo steam steam/question select "I AGREE" | debconf-set-selections \
&& echo steam steam/license note '' | debconf-set-selections \
&& apt install -y lib32gcc1 steamcmd
# Install ArmA 3 Dedicated Server & Mods
ARG STEAM_USER
ARG STEAM_PASSWORD
RUN /usr/games/steamcmd +login $STEAM_USER $STEAM_PASSWORD +force_install_dir /root/arma3/ +app_update 233780 valid>
# Link mods
RUN ln -sv /root/arma3/steamapps/workshop/content/107410/450814997/ /root/arma3/@CBA_A3 \
&& ln -sv /root/arma3/steamapps/workshop/content/107410/1661066023/ /root/arma3/@RKSLSAttachments
# Create profiles dir
RUN mkdir -p "/root/.local/share/Arma 3" && mkdir -p "/root/.local/share/Arma 3 - Other Profiles"
# Change Working Directory
WORKDIR /root/arma3
# Start the server
CMD [ "./arma3server", "-name=server", "-config=server.cfg", "-mod=@CBA_A3;@RKSLSAttachments"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment