Skip to content

Commit

Permalink
Add tini to java 21 Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoCoreDuo authored Nov 30, 2023
1 parent 72650fe commit 7e2ffbb
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions java/21/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,29 @@ LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolk
LABEL org.opencontainers.image.licenses=MIT

RUN apt update -y \
&& apt install -y \
curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6
&& apt install -y \
curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6 \
tini

## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash 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"]

0 comments on commit 7e2ffbb

Please sign in to comment.