forked from pterodactyl/yolks
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from parkervcp/tini
Use tini for some images to fix the ^C stop bug
- Loading branch information
Showing
48 changed files
with
425 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ FROM --platform=$TARGETOS/$TARGETARCH python:3.11-slim | |
|
||
LABEL author="Michael Parker" maintainer="[email protected]" | ||
|
||
|
||
RUN mkdir -p /usr/share/man/man1 | ||
RUN apt update \ | ||
&& apt -y upgrade \ | ||
|
@@ -32,7 +33,8 @@ RUN apt update \ | |
libexpat1-dev \ | ||
liblzma-dev \ | ||
ffmpeg \ | ||
imagemagick | ||
imagemagick \ | ||
tini | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install python-forecastio tweepy unidecode discord-text-sanitizer mcstatus bs4 sqlalchemy geocoder valve python-valve py-cpuinfo psutil | ||
|
@@ -46,5 +48,9 @@ USER container | |
ENV USER=container HOME=/home/container | ||
WORKDIR /home/container | ||
|
||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,16 @@ FROM --platform=$TARGETOS/$TARGETARCH dart:2.17 | |
LABEL author="Alden Bansemer" maintainer="[email protected]" | ||
|
||
RUN apt update \ | ||
&& apt -y install iproute2 git ca-certificates tzdata \ | ||
&& apt -y install iproute2 git ca-certificates tzdata tini \ | ||
&& useradd -m -d /home/container container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
WORKDIR /home/container | ||
|
||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,16 @@ FROM --platform=$TARGETOS/$TARGETARCH dart:2.18 | |
LABEL author="Alden Bansemer" maintainer="[email protected]" | ||
|
||
RUN apt update \ | ||
&& apt -y install iproute2 git ca-certificates tzdata \ | ||
&& apt -y install iproute2 git ca-certificates tzdata tini \ | ||
&& useradd -m -d /home/container container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
WORKDIR /home/container | ||
|
||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,16 @@ FROM --platform=$TARGETOS/$TARGETARCH dart:2.19 | |
LABEL author="Alden Bansemer" maintainer="[email protected]" | ||
|
||
RUN apt update \ | ||
&& apt -y install iproute2 git ca-certificates tzdata \ | ||
&& apt -y install iproute2 git ca-certificates tzdata tini \ | ||
&& useradd -m -d /home/container container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
WORKDIR /home/container | ||
|
||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.