Skip to content

Commit

Permalink
Merge pull request #209 from MarcoCoreDuo/java-21-tini
Browse files Browse the repository at this point in the history
Add tini to java 21 Dockerfile
  • Loading branch information
QuintenQVD0 authored Nov 30, 2023
2 parents 72650fe + 7e2ffbb commit b3f1e19
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 b3f1e19

Please sign in to comment.