Skip to content

Commit

Permalink
Add missing libgfortran5 arm64 dep for cns
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Oct 4, 2024
1 parent 006a8e3 commit b614d0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion deploy/Dockerfile.bartenderhaddock3
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,18 @@ WORKDIR /

FROM python:3.9-slim-bookworm

# cns executable installed by haddock3 is linked against libquadmath on linux/amd64
# cns executable installed by haddock3 is linked against libquadmath on linux/amd64 and libgfortran5 on linux/arm64
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
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
apt-get update && \
apt-get install -y libgfortran5 \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/*;fi

COPY --from=builder /wait /wait
COPY --from=builder /venv /venv
Expand All @@ -82,6 +87,9 @@ CMD ["/venv/bin/bartender", "serve"]

HEALTHCHECK --interval=30s --timeout=5s CMD curl --fail http://localhost:8000/api/health || exit 1

# Make sure cns is linked correctly
RUN ldd /venv/lib/python3.9/site-packages/haddock/bin/cns

# non-root user ======================================================================================================

ARG USERNAME=bartender
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "haddock3-webapp",
"private": true,
"version": "0.3.6",
"version": "0.3.7",
"sideEffects": false,
"type": "module",
"scripts": {
Expand Down

0 comments on commit b614d0d

Please sign in to comment.