From 3301a1b30a33093917f5f48361644bd761f77ee1 Mon Sep 17 00:00:00 2001 From: Joy Liu Date: Sat, 4 Nov 2023 22:23:18 -0400 Subject: [PATCH] life be like that --- backend/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/backend/Dockerfile b/backend/Dockerfile index 99d50c9..1decb04 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -18,6 +18,21 @@ RUN apt-get update \ && rm -f get-pip.py \ && rm -rf /var/lib/apt/lists/* +# Install dependencies for Python 3.10 +RUN apt-get update \ + && 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* + # Copy config files COPY docker/shibboleth/ /etc/shibboleth/ COPY docker/nginx-default.conf /etc/nginx/conf.d/default.conf