Skip to content

Commit 48a3ede

Browse files
committed
Add build-essential and dev libs (needed by pip install on armv7)
1 parent e1bf37f commit 48a3ede

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ LABEL org.label-schema.vendor="Grafolean" \
3131
org.label-schema.docker.schema-version="1.0"
3232
COPY --from=python-requirements /requirements.txt /requirements.txt
3333
RUN \
34+
apt-get update && \
35+
apt-get install --no-install-recommends -q -y git build-essential libpq-dev python3-dev libffi-dev && \
3436
pip install --no-cache-dir -r /requirements.txt && \
37+
apt-get purge -y git build-essential libpq-dev python3-dev libffi-dev && \
38+
apt-get clean autoclean && \
39+
apt-get autoremove --yes && \
40+
rm -rf /var/lib/{apt,dpkg,cache,log}/ /var/cache/apt/* /tmp/* && \
3541
echo "alias l='ls -altr'" >> /root/.bashrc
3642
COPY --from=build-backend /netflowbot/ /netflowbot/
3743
WORKDIR /netflowbot

0 commit comments

Comments
 (0)