Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

510
Views
GitLab Docker build locked on sharp download (timeout)

During Docker build in Gitlab job pipeline the process is freezed on

  • sharp@0.28.3 install /app/node_modules/sharp
  • (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
  • sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.6/libvips-8.10.6-linux-x64.tar.br

After 1 hour buil is killed by timeout.

Dockerfile:

FROM node:14.17.0

WORKDIR /app

ARG NODE_ENV=dev

ENV NODE_ENV $NODE_ENV

ENV PORT 3005

COPY ["package.json", "tsconfig.json", "./"]

RUN npm install --unsafe-perm
COPY ./src ./src
COPY ./views ./views
RUN npm run build
EXPOSE $PORT

CMD ["npm","start"]

I tryed build docker on my Windows environment whitout problem.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

That looks like lovell/sharp issue 2611

Workaround:

In case you cannot upgrade, change this line in node_modules/sharp/binding.gyp:

'-std=c++0x',

To:

'-std=c++14',

And run npm rebuild

Actual solution: upgrade.

I force the resolution on package.json to use the new version of Sharp and I could install and run, however my node-sass blow due the Node 16.
I remove the sharp resolution and downgrade the image in the gitlab CI Docker to node:14

Everything works fine now, so it seems was an issue with Node instead of Sharp.


The OP Pid confirms in the comments having resolved the issue by updating the host OS Ubuntu (20.04).
But that lead to lovell/sharp issue 2817, which in turn requires GitLab support.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!