Skip to content

Commit 3172b76

Browse files
authored
Merge pull request #14 from redsift/py311-pip
Fix python 3.11 pip installation
2 parents 188d0dc + 5579d43 commit 3172b76

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@ ENV version=${v} tag=${t}
1414
ENV PYTHONPATH=$PYTHONPATH:$HOME/lib/python PATH=$PATH:$HOME/lib/python
1515
ENV DEBIAN_FRONTEND=noninteractive
1616

17-
RUN apt-get update
18-
RUN apt-get install -y software-properties-common
17+
RUN apt update
18+
RUN apt install -y software-properties-common
1919
RUN add-apt-repository ppa:deadsnakes
2020
RUN curl https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add -
2121
RUN echo 'deb https://apt.kitware.com/ubuntu/ bionic main' > /etc/apt/sources.list.d/cmake.list
22-
RUN apt-get update
23-
RUN apt-get install -y build-essential cmake git s3cmd python$version python$version-distutils python$version-dev
24-
RUN curl -Ss https://bootstrap.pypa.io/get-pip.py | python$version
22+
RUN apt update
23+
RUN apt install -y build-essential cmake git s3cmd
24+
RUN apt install -y python$version python$version-dev python$version-venv python$version-distutils
25+
RUN python$version -m ensurepip --upgrade
2526

2627
RUN chown -R root:root $HOME
2728
RUN ln -fs /usr/bin/python3.11 /usr/bin/python3 && \
28-
apt-get purge -y && \
29+
apt purge -y && \
2930
rm -rf /root/.pip/cache/* /tmp/pip*
3031

3132
RUN python$version -m pip install --user -r /usr/bin/redsift/requirements.txt

0 commit comments

Comments
 (0)