Open twam opened 11 months ago
My team is having the same issue on a build that hasn't changed but has suddenly started failing on our CI machines with the same error.
That Dockerfile is just wrong it seems:
I managed to get it to work with the following Dockerfile
FROM ubuntu:20.04
ENV PATH=/usr/src/app:$PATH
RUN mkdir -p /usr/src/app
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
RUN apt install -y gcc make g++ pkg-config libpixman-1-dev libcairo2-dev libpango1.0-dev libjpeg8-dev libgif-dev nodejs npm
RUN npm install -g ts-node
COPY . /usr/src/app
RUN cd /usr/src/app && npm install
VOLUME /usr/src/proj
WORKDIR /usr/src/proj
ENTRYPOINT ["entrypoint.sh"]
@Risto97 your Dockerfile also doesn't work for me. I fixed the versions of core and ts and it seems it works now. It looks like:
FROM node:14
ENV PATH=/usr/src/app:$PATH
RUN mkdir -p /usr/src/app
COPY . /usr/src/app
RUN cd /usr/src/app && npm install typescript && npm install @swc/core@1.3.78 ts-node@10.9.1
VOLUME /usr/src/proj
WORKDIR /usr/src/proj
ENTRYPOINT ["entrypoint.sh"]
I followed the steps in the README to run
lv_img_conv
in a container:It fails to build
canvas@2.9.0
. Adding the missing dependencyto the docker solves this.
However if I then run
it fails with: