Skip to content

Commit

Permalink
Only install libquadmath on linux/amd64 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Oct 2, 2024
1 parent df98fa7 commit 69268e8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions deploy/Dockerfile.bartenderhaddock3
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN pip install .

# haddock3 ============================================================================================================
WORKDIR /opt/haddock3
RUN echo cachebust=9 && git clone --depth 1 -b ${HADDOCK3_VERSION} https://github.com/${HADDOCK3_GHORG}/haddock3.git .
RUN echo cachebust=10 && git clone --depth 1 -b ${HADDOCK3_VERSION} https://github.com/${HADDOCK3_GHORG}/haddock3.git .
RUN pip install .
# For restraints web service
RUN pip install fastapi uvicorn
Expand All @@ -58,11 +58,13 @@ WORKDIR /

FROM python:3.9-slim-bookworm

# cns is linked against libquadmath0, so install it
RUN apt-get update && \
apt-get install -y libquadmath0 \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/*
# cns executable installed by haddock3 is linked against libquadmath on linux/amd64
ARG TARGETPLATFORM
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
apt-get update && \
apt-get install -y libquadmath0 \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/*;fi

COPY --from=builder /wait /wait
COPY --from=builder /venv /venv
Expand Down

0 comments on commit 69268e8

Please sign in to comment.