Skip to content

Commit

Permalink
install numcodes seperately
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-dkrz committed Dec 3, 2024
1 parent f970139 commit 8d1e7a4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions freva-rest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get update && \
libblosc-dev \
gnupg wget git ca-certificates \
default-jre bash procps \
libz-dev liblz4-dev zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*

# mongodb
Expand Down Expand Up @@ -75,7 +76,10 @@ ENV API_CONFIG=/opt/freva-rest/api_config.toml \
USE_MONGODB=1 \
USE_SOLR=1 \
# To avoid the error installing numcodecs on ARM
BLOSC_NO_INTRINSICS=1
BLOSC_NO_INTRINSICS=1 \
SETUPTOOLS_USE_DISTUTILS=stdlib \
ARCHFLAGS="-arch arm64"


RUN mkdir -p /etc/mongodb /opt/app /opt/freva-rest ${SOLR_HOME} ${MONGO_HOME}/data && \
echo "security:\n authorization: enabled\n\
Expand All @@ -93,8 +97,9 @@ RUN /opt/solr/docker/scripts/init-var-solr && \
FROM base AS builder
WORKDIR /opt/app
COPY . .
RUN python3 -m pip install --upgrade pip --break-system-packages && \
RUN python3 -m pip install --upgrade pip setuptools wheel --break-system-packages && \
python3 -m pip install build --break-system-packages && \
python3 -m pip install numcodecs --no-binary numcodecs --break-system-packages && \
python3 -m pip install . --break-system-packages && \
python3 -m build --sdist --wheel

Expand Down

0 comments on commit 8d1e7a4

Please sign in to comment.