diff --git a/docker/shibboleth-sp-nginx/Dockerfile b/docker/shibboleth-sp-nginx/Dockerfile index c316b9d6..9e8d1ffc 100644 --- a/docker/shibboleth-sp-nginx/Dockerfile +++ b/docker/shibboleth-sp-nginx/Dockerfile @@ -34,9 +34,19 @@ ENV NGINX_VERSION=1.18.0-2~buster # Install dependencies RUN apt-get update \ - && apt-get install --no-install-recommends -y gnupg2 wget ca-certificates \ + && apt-get install --no-install-recommends -y gnupg2 wget build-essential ca-certificates curl tar make zlib1g-dev libssl-dev libpcre3-dev \ && rm -rf /var/lib/apt/lists/* +# Install Python 3.10 from the official Python repository +RUN curl -O https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz && \ + tar -xzvf Python-3.10.0.tgz && \ + cd Python-3.10.0 && \ + ./configure --enable-optimizations && \ + make -j "$(nproc)" && \ + make install && \ + cd .. && \ + rm -rf Python-3.10.0* + # Add Shibboleth and Nginx repositories RUN wget -qO - http://pkg.switch.ch/switchaai/SWITCHaai-swdistrib.asc | apt-key add - \ && wget -qO - https://nginx.org/keys/nginx_signing.key | apt-key add - \