Skip to content

Commit

Permalink
Use uname -m for architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Mar 11, 2024
1 parent f437aa6 commit 84b2ad8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY dist /tmp/dist

# Install Brian2 and recommended packages
ARG TARGETARCH
RUN python -m pip install --no-cache-dir --only-binary=:all: \
scipy \
matplotlib \
jupyterlab \
pytest \
pytest-xdist \
&& if [ "${TARGETARCH}" = "arm64" ]; then WHEEL_ARCH=aarch64; else WHEEL_ARCH=x86_64; fi \
&& python -m pip install /tmp/dist/Brian2*_${WHEEL_ARCH}.whl brian2tools \
&& python -m pip install /tmp/dist/Brian2*_$(uname -m).whl brian2tools \
&& rm -rf /tmp/dist

# Create a non-root user
Expand Down

0 comments on commit 84b2ad8

Please sign in to comment.