Skip to content

Commit

Permalink
install using pipx
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
  • Loading branch information
konstruktoid committed Dec 10, 2023
1 parent f3933b7 commit e044ff2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -11,11 +11,12 @@ LABEL "maintainer"="Thomas Sjögren <konstruktoid@users.noreply.github.com>"

COPY requirements.txt /requirements.txt

RUN apk --no-cache add gcc musl-dev python3 python3-dev && \
ENV PATH="${PATH}:/root/.local/bin"

RUN apk --no-cache add gcc musl-dev python3 python3-dev py3-pip && \
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
python3 -m ensurepip --upgrade && \
python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir --upgrade --ignore-installed --requirement /requirements.txt && \
python3 -m pip install --break-system-packages --no-cache-dir --upgrade pipx && \
for p in $(grep -v '^#' /requirements.txt); do pipx install "${p}"; done && \
apk del gcc musl-dev python3-dev && \
rm -rf /var/cache/apk/

0 comments on commit e044ff2

Please sign in to comment.