Skip to content

Commit

Permalink
update DayZ Image
Browse files Browse the repository at this point in the history
  • Loading branch information
gOOvER committed Mar 24, 2024
1 parent 317c2cf commit df769bb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 16 deletions.
43 changes: 27 additions & 16 deletions games/dayz/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
FROM --platform=$BUILDPLATFORM debian:stable-slim
## Original Author David Wolfe (Red-Thirten) rehlmgaming@gmail.com

LABEL author="David Wolfe (Red-Thirten)" maintainer="rehlmgaming@gmail.com"
FROM --platform=$BUILDPLATFORM debian:bookworm-slim

LABEL org.opencontainers.image.source="https://github.com/parkervcp/yolks"
LABEL author="Torsten Widmann" maintainer="info@goover.de"
LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images"
LABEL org.opencontainers.image.licenses=MIT

## Update base packages and install dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386 \
&& apt update \
&& apt upgrade -y \
&& apt install -y \
# Update the repository and install needed packages
ARG DEBIAN_FRONTEND=noninteractive
COPY sources.list /etc/apt/sources.list
RUN dpkg --add-architecture i386
RUN apt update \
&& apt -y upgrade

RUN apt install -y \
curl \
tini \
tzdata \
locales \
iproute2 \
Expand All @@ -27,11 +31,14 @@ RUN dpkg --add-architecture i386 \
libcap2 \
libnss-wrapper

## Configure locale
RUN update-locale lang=en_US.UTF-8 \
&& dpkg-reconfigure --frontend noninteractive locales
# Set the locale
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

## Prepare NSS Wrapper for the entrypoint as a workaround for Arma 3 requiring a valid UID
## Prepare NSS Wrapper for the entrypoint as a workaround for games requiring a valid UID
ENV NSS_WRAPPER_PASSWD=/tmp/passwd NSS_WRAPPER_GROUP=/tmp/group
RUN touch ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP} \
&& chgrp 0 ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP} \
Expand All @@ -44,6 +51,10 @@ USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

## Copy over and execute entrypoint.sh
COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]
# Sets the default stop signal as wings can (currently) only send a kill or generic stop
STOPSIGNAL SIGINT

COPY --chown=container:container ../entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]
14 changes: 14 additions & 0 deletions games/dayz/sources.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
deb http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware

deb http://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware

0 comments on commit df769bb

Please sign in to comment.