mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-07 06:41:17 +00:00
Re-format and re-order entries.
This commit is contained in:
parent
9edfcae0c9
commit
ba2be87f37
1 changed files with 9 additions and 10 deletions
19
Dockerfile
19
Dockerfile
|
@ -2,7 +2,7 @@ FROM debian:bullseye
|
|||
|
||||
# Set debconf to run non-interactively and agree to the SteamCMD EULA
|
||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
||||
&& echo steam steam/question select "I AGREE" | debconf-set-selections \
|
||||
&& echo steam steam/question select "I AGREE" | debconf-set-selections \
|
||||
&& echo steam steam/license note '' | debconf-set-selections \
|
||||
&& dpkg --add-architecture i386
|
||||
|
||||
|
@ -13,8 +13,8 @@ RUN echo 'deb http://deb.debian.org/debian bullseye-backports main non-free' >>
|
|||
|
||||
# Install _only_ the necessary packages
|
||||
RUN apt-get update && apt-get -y upgrade && apt-get -y install --no-install-recommends \
|
||||
nano \
|
||||
curl \
|
||||
nano \
|
||||
curl \
|
||||
ca-certificates \
|
||||
lib32gcc-s1 \
|
||||
lib32stdc++6 \
|
||||
|
@ -23,13 +23,12 @@ RUN apt-get update && apt-get -y upgrade && apt-get -y install --no-install-reco
|
|||
libcap2 \
|
||||
locales \
|
||||
procps \
|
||||
wget \
|
||||
rename \
|
||||
wget \
|
||||
rename \
|
||||
steamcmd
|
||||
|
||||
# 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 LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
@ -37,15 +36,15 @@ ENV LC_ALL en_US.UTF-8
|
|||
# steamcmd ends up in /usr/games
|
||||
ENV PATH /usr/games:${PATH}
|
||||
|
||||
# Add the dayzserver to a directory in PATH. Might as well be /usr/games!
|
||||
ADD files/dayzserver /usr/games
|
||||
|
||||
# Setup a non-privileged user
|
||||
RUN groupadd user && \
|
||||
useradd -l -g user user && \
|
||||
mkdir /home/user && \
|
||||
chown user:user /home/user
|
||||
|
||||
# Add the dayzserver to a directory in PATH. Might as well be /usr/games!
|
||||
ADD files/dayzserver /usr/games
|
||||
|
||||
# Use our non-privileged user
|
||||
USER user
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue