Skip to content

Commit

Permalink
fixup! Dockerfile: Compile RAxML from a fork repo to support arm64
Browse files Browse the repository at this point in the history
Use tarball endpoint with a commit hash, after updating target repo to
not rely on a git submodule.
  • Loading branch information
victorlin committed Dec 15, 2022
1 parent 61f9065 commit 258050a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ RUN mkdir -p /final/bin /final/share /final/libexec

# Build RAxML
# linux/arm64 does not support -mavx and -msse3 compilation flags which are used in the official repository.
# Make these changes in a fork for now.
# Make these changes in a fork for now: https://github.com/nextstrain/standard-RAxML/tree/simde
# TODO: Use the official repository if this PR is ever merged: https://github.com/stamatak/standard-RAxML/pull/50
WORKDIR /build/RAxML
RUN git clone --depth 1 --recurse-submodules --shallow-submodules --single-branch --branch simde https://github.com/nextstrain/standard-RAxML.git . \
&& make -f Makefile.AVX.PTHREADS.gcc \
&& cp -p raxmlHPC-PTHREADS-AVX /final/bin
RUN curl -fsSL https://api.github.com/repos/nextstrain/standard-RAxML/tarball/4621552064304a219ff03810f5f0d91e1063b68f \
| tar xzvpf - --no-same-owner --strip-components=1 \
&& make -f Makefile.AVX.PTHREADS.gcc \
&& cp -p raxmlHPC-PTHREADS-AVX /final/bin

# Build FastTree
WORKDIR /build/FastTree
Expand Down

0 comments on commit 258050a

Please sign in to comment.