Skip to content

Commit

Permalink
sus
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliu-q committed Nov 5, 2023
1 parent 5bfd30b commit 5f4445a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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
Expand Down

0 comments on commit 5f4445a

Please sign in to comment.