OpenWorm icon indicating copy to clipboard operation
OpenWorm copied to clipboard

Update Dockerfile

Open pikid opened this issue 1 year ago • 2 comments

fix bugs: 1.ERROR [10/28] RUN git clone https://github.com/openworm/c302.git && cd c302 && git checkout ow-0.9.4 && sudo pip install .
2.ERROR: Failed building wheel for h5py

pikid avatar Jun 12 '24 15:06 pikid

Hi @pikid. Thanks again for these PRs. I'm struggling to see though why the build of the original script failed on your system. How are you building it? What OS?

Is it by any chance a recent Mac with Apple Silicon (M1/M2 chip)? In this case altering the build.sh with --platform linux/amd64 could work:

docker build --platform linux/amd64  "$@" -t "openworm/openworm:$version" .

pgleeson avatar Jun 24 '24 12:06 pgleeson

Is it by any chance a recent Mac with Apple Silicon (M1/M2 chip)? In this case altering the build.sh with --platform linux/amd64 could work:

docker build --platform linux/amd64  "$@" -t "openworm/openworm:$version" .

I can confirm this works for me on a M1 mac.

tijszwinkels avatar Jul 05 '24 08:07 tijszwinkels