Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] only install ARM-specific dependencies on an ARM architecture #773

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions monitoring/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ FROM python:3.12.4-slim
# curl: Useful debugging utility
# gcc: Required to build various packages
# ca-certificates: Needed to accurately validate TLS connections
RUN apt-get update --fix-missing && apt-get install -y openssl curl libgeos-dev gcc && apt-get install ca-certificates
RUN apt-get update --fix-missing && apt-get install -y make openssl curl libgeos-dev gcc g++ && apt-get install ca-certificates

# Required to build in an ARM environment
# gevent: libffi-dev libssl-dev python3-dev build-essential
# lxml: libxml2-dev libxslt-dev
# h5py: pkg-config libhdf5-dev
RUN apt-get install -y libffi-dev libssl-dev python3-dev build-essential libxml2-dev libxslt-dev pkg-config libhdf5-dev
RUN if [ "$(uname -m)" = "aarch64" ]; then \
apt-get install -y libffi-dev libssl-dev python3-dev build-essential libxml2-dev libxslt-dev pkg-config libhdf5-dev \
; fi

# Install the necessary Python packages from requirements.txt
RUN mkdir -p /app/monitoring
Expand Down
Loading