mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-07 14:51:17 +00:00
Add git, jq, python, and py3rcon.
This commit is contained in:
parent
2b64840617
commit
a50e9ed6a4
1 changed files with 11 additions and 2 deletions
13
Dockerfile
13
Dockerfile
|
@ -16,6 +16,8 @@ RUN apt-get update && apt-get -y upgrade && apt-get -y install --no-install-reco
|
||||||
nano \
|
nano \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
git \
|
||||||
|
jq \
|
||||||
lib32gcc-s1 \
|
lib32gcc-s1 \
|
||||||
lib32stdc++6 \
|
lib32stdc++6 \
|
||||||
libcurl4:i386 \
|
libcurl4:i386 \
|
||||||
|
@ -23,18 +25,25 @@ RUN apt-get update && apt-get -y upgrade && apt-get -y install --no-install-reco
|
||||||
libcap2 \
|
libcap2 \
|
||||||
locales \
|
locales \
|
||||||
procps \
|
procps \
|
||||||
|
python3-pip \
|
||||||
wget \
|
wget \
|
||||||
rename \
|
rename \
|
||||||
steamcmd
|
steamcmd
|
||||||
|
|
||||||
|
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1
|
||||||
|
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
|
||||||
|
|
||||||
# Set the locale
|
# Set the locale
|
||||||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
ENV LANGUAGE en_US:en
|
ENV LANGUAGE en_US:en
|
||||||
ENV LC_ALL en_US.UTF-8
|
ENV LC_ALL en_US.UTF-8
|
||||||
|
|
||||||
|
# Add py3rcon
|
||||||
|
RUN cd /usr/local && git clone https://github.com/indepth666/py3rcon.git
|
||||||
|
|
||||||
# steamcmd ends up in /usr/games
|
# steamcmd ends up in /usr/games
|
||||||
ENV PATH /usr/games:${PATH}
|
ENV PATH /usr/games:/usr/local/py3rcon:${PATH}
|
||||||
|
|
||||||
# Setup a non-privileged user
|
# Setup a non-privileged user
|
||||||
RUN groupadd user && \
|
RUN groupadd user && \
|
||||||
|
@ -43,7 +52,7 @@ RUN groupadd user && \
|
||||||
chown user:user /home/user
|
chown user:user /home/user
|
||||||
|
|
||||||
# Add the dayzserver to a directory in PATH. Might as well be /usr/games!
|
# Add the dayzserver to a directory in PATH. Might as well be /usr/games!
|
||||||
ADD files/dayzserver /usr/games
|
#ADD files/dayzserver /usr/games
|
||||||
|
|
||||||
# Use our non-privileged user
|
# Use our non-privileged user
|
||||||
USER user
|
USER user
|
||||||
|
|
Loading…
Add table
Reference in a new issue