Add tini to java 21 Dockerfile
This commit is contained in:
@@ -6,18 +6,19 @@ LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolk
|
|||||||
LABEL org.opencontainers.image.licenses=MIT
|
LABEL org.opencontainers.image.licenses=MIT
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
curl \
|
curl \
|
||||||
lsof \
|
lsof \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
openssl \
|
openssl \
|
||||||
git \
|
git \
|
||||||
tar \
|
tar \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
fontconfig \
|
fontconfig \
|
||||||
tzdata \
|
tzdata \
|
||||||
iproute2 \
|
iproute2 \
|
||||||
libfreetype6
|
libfreetype6 \
|
||||||
|
tini
|
||||||
|
|
||||||
## Setup user and working directory
|
## Setup user and working directory
|
||||||
RUN useradd -m -d /home/container -s /bin/bash container
|
RUN useradd -m -d /home/container -s /bin/bash container
|
||||||
@@ -25,5 +26,9 @@ USER container
|
|||||||
ENV USER=container HOME=/home/container
|
ENV USER=container HOME=/home/container
|
||||||
WORKDIR /home/container
|
WORKDIR /home/container
|
||||||
|
|
||||||
COPY ./../entrypoint.sh /entrypoint.sh
|
STOPSIGNAL SIGINT
|
||||||
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
|
||||||
|
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
|
||||||
|
RUN chmod +x /entrypoint.sh
|
||||||
|
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||||
|
CMD ["/entrypoint.sh"]
|
||||||
|
Reference in New Issue
Block a user