Skip to content

Commit

Permalink
add tini to dayz
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintenQVD0 authored Nov 18, 2023
1 parent 71f1752 commit a02fea5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions games/dayz/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ RUN dpkg --add-architecture i386 \
libstdc++6:i386 \
lib32stdc++6 \
libcap2 \
libnss-wrapper
libnss-wrapper \
tini

## Configure locale
RUN update-locale lang=en_US.UTF-8 \
Expand All @@ -45,6 +46,9 @@ 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" ]
STOPSIGNAL SIGINT

COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]

0 comments on commit a02fea5

Please sign in to comment.