Skip to content

Commit

Permalink
life be like that
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliu-q committed Nov 5, 2023
1 parent a3c7cc6 commit 3301a1b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3301a1b

Please sign in to comment.