From 57abf31b31e93bfe6a4db48e4ff32bc00d1cbb24 Mon Sep 17 00:00:00 2001
From: Paolo Brasolin <paolo.brasolin@gmail.com>
Date: Tue, 19 Apr 2022 16:33:59 +0200
Subject: [PATCH] fix: #be work around flaky npm mirror

---
 backend/Dockerfile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/backend/Dockerfile b/backend/Dockerfile
index a03d20e..c440e58 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -4,6 +4,11 @@ LABEL maintainer="Paolo Brasolin <paolo.brasolin@eurac.edu>"
 WORKDIR /app
 
 COPY package*.json ./
+
+# FIXME: apparently today GH is congestioned and we need to use a chinese mirror.
+RUN npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp"
+RUN npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips"
+
 RUN npm install
 
 COPY . .
-- 
GitLab