This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
57 lines (46 loc) · 1.46 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM ubuntu:18.04
MAINTAINER "Jordan Heale" <[email protected]>
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
locales \
gcc \
libsdl2-dev \
libsdl2-2.0 \
libc6-dev \
lib32gcc1 \
libstdc++6 \
libstdc++6:i386 \
wget \
gzip \
ca-certificates \
&& apt-get remove --purge -y \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm /var/lib/apt/lists/* -r
# Set the locale
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN mkdir -p /steamcmd \
&& cd /steamcmd \
&& wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz \
&& tar -zxvf steamcmd_linux.tar.gz \
&& rm -f steamcmd_linux.tar.gz
ENV DEBIAN_FRONTEND=noninteractive
ENV VALIDATE=1
ARG RCON_PASSWORD=secret
WORKDIR /arma2oaserver
COPY credentials.sh install.sh serverfiles/tolower.c ./
RUN cd /arma2oaserver \
&& ./install.sh \
&& rm -f ./credentials.sh \
&& rm -f ./install.sh \
&& echo "RConPassword $RCON_PASSWORD" > ./expansion/battleye/beserver.cfg \
&& echo 33930 > ./steam_appid.txt
ADD serverfiles ./
STOPSIGNAL SIGINT
CMD ["./server", "-par=params", "-profiles=profiles"]