Skip to content

Commit

Permalink
Fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Aug 2, 2024
1 parent 763a428 commit 44bd126
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG APP=foldseek
ARG APP=foldmason
FROM --platform=$BUILDPLATFORM debian:stable-backports as builder
ARG TARGETARCH
ARG APP
Expand Down
10 changes: 10 additions & 0 deletions util/foldmason_wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
FLAGS="$(grep -m 1 '^flags' /proc/cpuinfo)"
case "${FLAGS}" in
*avx2*)
exec /usr/local/bin/foldmason_avx2 "$@"
;;
*)
exec /usr/local/bin/foldmason_sse2 "$@"
;;
esac

0 comments on commit 44bd126

Please sign in to comment.