Merge pull request #209 from MarcoCoreDuo/java-21-tini

Add tini to java 21 Dockerfile
This commit is contained in:
Quinten authored and GitHub committed 2023-11-30 23:53:50 +01:00
commit b3f1e19813
1 file changed
+8 -3
+8 -3
View File
@@ -17,7 +17,8 @@ RUN apt update -y \
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"]