-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Segmentation Fault alpine linux in Docker on arm mac #41
Comments
|
Builded module from source works as expected: FROM node:16-alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ENV NODE_ENV production
COPY package* /usr/src/app/
RUN apk add --no-cache --virtual .build-deps \
g++ make python3 \
&& npm ci --build-from-source && npm cache clean --force \
&& apk del .build-deps
COPY . /usr/src/app/
CMD ["npm", "start"]
|
I assume this is because of musl/glibc, have you checked whether any of https://wiki.alpinelinux.org/wiki/Running_glibc_programs fixes this? |
@juliangruber rebuild from source on alpine linux |
I'm unable to reproduce, and verified that the prebuilt binary for alpine is loaded from What's in your npm |
This happens in docker on Mac M1... |
@mahnunchik Please open a new issue with details and a way to reproduce. |
@vweevers I've updated original issue |
Oh I see. I misunderstood. I'm not familiar with this setup. I guess it's a CPU incompatibility, because the prebuilt binary was created on x64. What's the output of |
I've faced with the Segmentation Fault on alpine linux running in docker on arm mac.
The text was updated successfully, but these errors were encountered: