Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RevoluPowered/4244fde8f57d5ff0cce3da3484aa7d81 to your computer and use it in GitHub Desktop.
Save RevoluPowered/4244fde8f57d5ff0cce3da3484aa7d81 to your computer and use it in GitHub Desktop.
somedockerfile
FROM ubuntu:bionic
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install software-properties-common -y
RUN useradd -m steam
RUN cd /home/steam
RUN add-apt-repository multiverse
RUN dpkg --add-architecture i386
RUN cd /home/steam/
RUN mkdir /home/steam/arma3
RUN mkdir /home/steam/arma3/install/
RUN mkdir /home/steam/arma3/install/mods
RUN apt-get update
RUN apt-get install wget python3 python3-pip libsdl2-2.0-0:i386 rename htop net-tools sudo -y
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND teletype
RUN ln -sf /usr/games/steamcmd /usr/bin/steamcmd
ENV ACCEPT_EULA=Y
RUN echo steam steam/question select "I AGREE" | debconf-set-selections && \
echo steam steam/license note '' | debconf-set-selections && \
apt-get install lib32gcc1 steamcmd -y
ADD arma_server.py /home/steam/arma3/arma_server.py
RUN python3 /home/steam/arma3/arma_server.py
# CMD ["/home/steam/arma3/install/arma3server_x64", '-Config ../server.cfg']
# todo load mods
# RUN steamcmd login $steam_username $steam_password
ENV PATH "$PATH:/home/steam/arma3/install/"
# manually added mod path from mod_load_path running once on PC building image.
WORKDIR /home/steam/arma3/install
# CMD ["sh", "-c", "tail -f /dev/null"]
ADD server.cfg /home/steam/arma3/install/server.cfg
RUN mkdir "/root/.local"
RUN mkdir "/root/.local/share/"
RUN mkdir "/root/.local/share/Arma 3 - Other Profiles/"
RUN mkdir "/root/.local/share/Arma 3 - Other Profiles/Player"
ADD Player.3den.Arma3Profile /root/Player.3den.Arma3Profile
ADD Player.Arma3Profile /root/Player.Arma3Profile
ADD Player.vars.Arma3Profile /root/Player.vars.Arma3Profile
RUN mv /root/Player.vars.Arma3Profile "/root/.local/share/Arma 3 - Other Profiles/Player/Player.vars.Arma3Profile"
RUN mv /root/Player.Arma3Profile "/root/.local/share/Arma 3 - Other Profiles/Player/Player.Arma3Profile"
RUN mv /root/Player.3den.Arma3Profile "/root/.local/share/Arma 3 - Other Profiles/Player/Player.3den.Arma3Profile"
RUN wget -O /home/steam/arma3/install/mpmissions/antistasi-altis-2-3-2.altis.pbo https://github.com/official-antistasi-community/A3-Antistasi/releases/download/2.3.2/Antistasi-Altis-2-3-2.Altis.pbo
EXPOSE 2344 2345 2302 2303 2304 2305 2306
# CMD ["sh", "-c", "tail -f /dev/null"]
ENTRYPOINT ["arma3server_x64", "-config=server.cfg", "-mod=\"jets;helicopters;karts;marksmen;apex;lawsofwar;malden;zeus;tac ops;tanks;globalmob;mods/@cba_a3;mods/@enchanced_movement;mods/@rhsafrf;mods/@rhsusaf;mods/@ace3;mods/@rhsgref;mods/@rhssaf;mods/@ace_compat_rhs_gref;mods/@ace_compat_rhs_armed_forces_russia;mods/@ace_compat_rhs_usaf;mods/@ace_interaction_menu;mods/@ace_compat_rhs_saf;mods/@advanced_towing;mods/@immersion_cigs;mods/@personal_arsenal;mods/@warlords;mods/@justbuild;mods/@ace_particles;mods/@vcom_ai;mods/@antistasi;\""]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment