Skip to content

Commit

Permalink
Add build-essential and dev libs (needed by pip install on armv7)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafolean committed Jan 21, 2021
1 parent e1bf37f commit 48a3ede
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48a3ede

Please sign in to comment.