I’m trying to build one of my rescript projects, in a docker image, but at the
npm install stage, I get the following error:
> rescript build -with-deps ... FAILED: src/api.ast sh: /home/app/node_modules/rescript/linux/refmt.exe: not found We've found a bug for you! /home/app/src/api.re There's been an error running Reason's parser on a file. If the message doesn't help, check for errors slightly above. Please file an issue on github.com/facebook/reason. Thanks! FAILED: cannot make progress due to previous errors.
I believe that I just miss some library somewhere or use the wrong version of something. Here is my Dockerfile :
FROM node:19-alpine WORKDIR /home/app RUN apk --update --upgrade --no-cache add bash cairo-dev make pango-dev gdk-pixbuf curl && \ ln -s /usr/bin/python3 /usr/bin/python COPY package.json ./ COPY bsconfig.json ./ COPY src ./src COPY __tests__ ./__tests__ RUN apk add --no-cache --virtual .build-deps gcc g++ python3-dev musl-dev jpeg-dev zlib-dev libffi-dev RUN npm install
Has anyone any idea how to resolve this ?