-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to build repository image on Apple ARM-based chips (M1, M2) #103
Comments
I tried to fix the issue by changing the platform in repository:
platform: linux/amd64 However, after this change it now gets stuck when running => [repository stage-0 11/11] RUN mkdir /redirects && cd select-contract-form && npm install && npm run build 46.6s
=> => # > react-scripts build && cp -r build/* ../redirects
=> => # Creating an optimized production build...
=> => # Browserslist: caniuse-lite is outdated. Please run:
=> => # npx browserslist@latest --update-db
=> => # Why you should do it regularly:
=> => # https://github.com/browserslist/browserslist#browsers-data-updating Not sure why this happens. [1] https://github.com/sass/node-sass/releases/tag/v4.14.1 |
Another fail attempt to solve this issue was to try to actually install Python and compile the Node native module. Adding this to the beginning of the RUN apk add python
# or
# RUN apk add python2 However Python 2 is not available
And installing Python 3 raises a syntax error
|
@acuarica node:14 seems a bit old. |
It doesn't look like. I have checked both these repos https://github.com/ethereum/sourcify and https://github.com/sourcifyeth/h5ai-nginx and found nothing related. |
This was solved in the submodule dependency sourcifyeth/h5ai-nginx@80938c4. Essentially the key was to use |
Following the instruction in the
README
you can build the repository image by runningdocker-compose -f environments/build-repository.yaml build
However this fails when running from an Apple ARM-based host, essentially because
python
is not foundBut this Python error is raised because it cannot find a Node native module for the sass package. From the excerpt above
it then tries to compile it, failing because Python is not installed.
The text was updated successfully, but these errors were encountered: