Install CURL

This commit is contained in:
Mitchell Syer
2025-11-08 20:17:18 -05:00
committed by GitHub
parent 4084b67e39
commit 7faeea249b

View File

@@ -4,10 +4,10 @@ ARG TACHIDESK_ABORT_HANDLER_DOWNLOAD_URL
# build abort handler # build abort handler
RUN if [ -n "$TACHIDESK_ABORT_HANDLER_DOWNLOAD_URL" ]; then \ RUN if [ -n "$TACHIDESK_ABORT_HANDLER_DOWNLOAD_URL" ]; then \
apt-get update && \
apt-get -y install -y curl gcc && \
cd /tmp && \ cd /tmp && \
curl "$TACHIDESK_ABORT_HANDLER_DOWNLOAD_URL" -O && \ curl "$TACHIDESK_ABORT_HANDLER_DOWNLOAD_URL" -O && \
apt-get update && \
apt-get -y install gcc && \
gcc -fPIC -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -shared catch_abort.c -lpthread -o /opt/catch_abort.so && \ gcc -fPIC -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -shared catch_abort.c -lpthread -o /opt/catch_abort.so && \
rm -f catch_abort.c && \ rm -f catch_abort.c && \
apt-get -y purge gcc --auto-remove && \ apt-get -y purge gcc --auto-remove && \
@@ -25,7 +25,7 @@ ARG TACHIDESK_KCEF_RELEASE_URL
# install unzip to unzip the server-reference.conf from the jar # install unzip to unzip the server-reference.conf from the jar
# Install tini for a tiny init system (handles orphan processes for graceful restart) # Install tini for a tiny init system (handles orphan processes for graceful restart)
RUN apt-get update && \ RUN apt-get update && \
apt-get -y install -y gettext-base unzip tini ca-certificates p11-kit && \ apt-get -y install -y curl gettext-base unzip tini ca-certificates p11-kit && \
/usr/bin/p11-kit extract --format=java-cacerts --filter=certificates --overwrite --purpose server-auth $JAVA_HOME/lib/security/cacerts && \ /usr/bin/p11-kit extract --format=java-cacerts --filter=certificates --overwrite --purpose server-auth $JAVA_HOME/lib/security/cacerts && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*