Closed sampullman closed 1 year ago
Any chance you could share that hack?
It's been quite a while since we implemented the workaround, so I may have forgotten something, but it's pretty much:
@parcel/watcher
with an arm64 prebuild# Copy in prebuilt @parcel/watcher
COPY tools/prebuilds/@parcel/watcher ./node_modules/@parcel/watcher
RUN npm install
Here's the prebuilt version we have in-repo: prebuilds.zip
Currently, when installing a package that depends on
@parcel/watcher
in an Alpine Docker image on my M1 Mac, none of the existing prebuilds match and a rebuild from source is required each time mynode_modules
changes. It also bloats the image size, since g++/make/python is required.Is it possible to provide a musl prebuild for
darwin-arm64
?My current workaround is to build
@parcel/watcher
locally for musl and manually copy the whole dependency + extra prebuild to the Dockerfile. It works fine but it would be nice to avoid the hack.