diff --git a/backend/Dockerfile b/backend/Dockerfile index aa8bbc0..8109f3b 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -7,22 +7,12 @@ ENV LANG C.UTF-8 WORKDIR /app/ -# Install dependencies -RUN apt-get update \ - && apt-get install --no-install-recommends -y python3.7-dev python3-distutils libpq-dev gcc \ - && wget -qO get-pip.py "https://raw.githubusercontent.com/pypa/get-pip/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py" \ - && python3.10 get-pip.py \ - --disable-pip-version-check \ - --no-cache-dir \ - && pip3 install pipenv \ - && 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 && \ @@ -32,6 +22,17 @@ RUN curl -O https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz && \ cd .. && \ rm -rf Python-3.10.0* +# Install dependencies +RUN apt-get update \ + && apt-get install --no-install-recommends -y python3.7-dev python3-distutils libpq-dev gcc \ + && wget -qO get-pip.py "https://raw.githubusercontent.com/pypa/get-pip/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py" \ + && python3.10 get-pip.py \ + --disable-pip-version-check \ + --no-cache-dir \ + && pip3 install pipenv \ + && rm -f get-pip.py \ + && rm -rf /var/lib/apt/lists/* + # Copy config files COPY docker/shibboleth/ /etc/shibboleth/ COPY docker/nginx-default.conf /etc/nginx/conf.d/default.conf