From cf786f7bb0034a42bbde2d6b6c2ca5e23bf5517f Mon Sep 17 00:00:00 2001 From: Chris Rosenthal Date: Thu, 11 Jul 2024 09:43:08 -0700 Subject: [PATCH] Added Cirro dependency psutils and fixed a couple docker build warnings --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b66dce..2f4d9f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,19 @@ FROM python:3.11-slim-bullseye -RUN apt-get -y update && \ - apt-get install -y unzip wget +RUN apt-get -y update && apt-get upgrade -y && apt-get install -y \ +unzip \ +wget \ +# Cirro requirement +psutils WORKDIR /opt/build COPY dev/install_pplacer.sh /opt/build/install_pplacer.sh RUN /opt/build/install_pplacer.sh /usr/local -COPY setup.py MANIFEST.in README.rst requirements.txt /opt/build -COPY taxtastic /opt/build/taxtastic -RUN python3 -m pip install --constraint requirements.txt . +COPY setup.py MANIFEST.in README.rst requirements.txt /opt/build/ +COPY taxtastic /opt/build/taxtastic/ +RUN python3 -m pip install --root-user-action=ignore --upgrade pip && \ +python3 -m pip install --constraint requirements.txt --root-user-action=ignore . WORKDIR /opt/run RUN mkdir -p /app /fh /mnt /run/shm