2017-02-18 15:38:29 +00:00
|
|
|
FROM debian
|
|
|
|
|
2018-05-15 22:00:14 +00:00
|
|
|
ENV LC_ALL=C \
|
|
|
|
LC_CTYPE=C \
|
|
|
|
LANG=C
|
|
|
|
|
2017-02-18 15:38:29 +00:00
|
|
|
RUN set -ex \
|
|
|
|
&& dpkg --add-architecture i386 \
|
|
|
|
&& apt-get update \
|
2018-05-15 22:00:14 +00:00
|
|
|
&& apt-get install -y \
|
|
|
|
bc \
|
|
|
|
binutils \
|
|
|
|
bsdmainutils \
|
|
|
|
bzip2 \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
file \
|
|
|
|
gzip \
|
2019-01-01 18:52:33 +00:00
|
|
|
jq \
|
2018-05-15 22:00:14 +00:00
|
|
|
lib32gcc1 \
|
|
|
|
lib32z1 \
|
|
|
|
libstdc++6 \
|
|
|
|
libstdc++6:i386 \
|
|
|
|
locales \
|
|
|
|
mailutils \
|
|
|
|
postfix \
|
|
|
|
procps \
|
|
|
|
python \
|
|
|
|
tmux \
|
|
|
|
unzip \
|
|
|
|
util-linux \
|
|
|
|
wget \
|
|
|
|
&& adduser --disabled-password rustserver \
|
|
|
|
&& echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen \
|
|
|
|
&& locale-gen \
|
|
|
|
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
2017-02-18 15:38:29 +00:00
|
|
|
|
2018-05-15 22:00:14 +00:00
|
|
|
ADD https://linuxgsm.com/dl/linuxgsm.sh /tmp/linuxgsm.sh
|
2017-02-18 15:38:29 +00:00
|
|
|
RUN set -ex \
|
2018-05-15 22:00:14 +00:00
|
|
|
&& chmod 0644 linuxgsm.sh \
|
|
|
|
&& su -c "bash linuxgsm.sh rustserver" rustserver \
|
|
|
|
&& chmod 0755 rustserver \
|
|
|
|
&& mv /tmp/rustserver /opt/rustserver
|
2017-02-18 15:38:29 +00:00
|
|
|
|
|
|
|
USER rustserver
|
|
|
|
WORKDIR /home/rustserver
|
|
|
|
|
|
|
|
ADD start.sh /opt/start.sh
|
|
|
|
|
|
|
|
VOLUME /home/rustserver
|
|
|
|
|
|
|
|
EXPOSE 28015/udp 28016
|
|
|
|
ENTRYPOINT ["/opt/start.sh"]
|