Skip to content

Commit

Permalink
Update pip, setuptools and wheel before installing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
catileptic committed Nov 20, 2023
1 parent 59ae9db commit fca3d4f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -qq -y update \
&& apt-get -qq -y install python3-pip \
pkg-config libicu-dev python3-setuptools \
pkg-config libicu-dev \
&& apt-get -qq -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand All @@ -14,7 +14,11 @@ ENV LANG='en_US.UTF-8'

COPY . /opt/servicelayer
WORKDIR /opt/servicelayer
RUN pip3 install -q --no-cache-dir -e /opt/servicelayer[dev]

RUN pip3 install --no-cache-dir --prefer-binary --upgrade pip
RUN pip3 install --no-cache-dir --prefer-binary --upgrade setuptools wheel
RUN pip3 install --no-cache-dir --prefer-binary -r requirements.txt
RUN pip3 install -q --no-cache-dir --config-settings editable_mode=compat --use-pep517 -e /opt/servicelayer[dev]
RUN pip3 install -r requirements.txt

CMD /bin/bash

0 comments on commit fca3d4f

Please sign in to comment.