Add tini to java 21 Dockerfile

This commit is contained in:
MarcoCoreDuo
2023-11-30 22:37:59 +01:00
committed by GitHub
parent 72650fe46f
commit 7e2ffbbfd8

View File

@@ -17,7 +17,8 @@ RUN apt update -y \
fontconfig \
tzdata \
iproute2 \
libfreetype6
libfreetype6 \
tini
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
@@ -25,5 +26,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"]