Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

513
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda