From 48a3ededceb1471f9a8d77e418d126e0d57992d2 Mon Sep 17 00:00:00 2001 From: Anze Date: Thu, 21 Jan 2021 17:27:05 +0100 Subject: [PATCH] Add build-essential and dev libs (needed by pip install on armv7) --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index cdaf888..e6be576 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,13 @@ LABEL org.label-schema.vendor="Grafolean" \ org.label-schema.docker.schema-version="1.0" COPY --from=python-requirements /requirements.txt /requirements.txt RUN \ + apt-get update && \ + apt-get install --no-install-recommends -q -y git build-essential libpq-dev python3-dev libffi-dev && \ pip install --no-cache-dir -r /requirements.txt && \ + apt-get purge -y git build-essential libpq-dev python3-dev libffi-dev && \ + apt-get clean autoclean && \ + apt-get autoremove --yes && \ + rm -rf /var/lib/{apt,dpkg,cache,log}/ /var/cache/apt/* /tmp/* && \ echo "alias l='ls -altr'" >> /root/.bashrc COPY --from=build-backend /netflowbot/ /netflowbot/ WORKDIR /netflowbot