This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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