From 3c3300778bcd059c92d3e4c0bf9f01dc65ea0353 Mon Sep 17 00:00:00 2001 From: Lee Jones Date: Thu, 29 Nov 2018 11:55:28 +0000 Subject: [PATCH] Dockerfile: Rebuild Sharp and GRPC modules Rocket.Chat comes with some modules pre-compiled. Unfortunately only x86_64 modules are supplied. By rebuilding them locally it ensures Rocket.Chat Docker images can be built/run on all platforms. Signed-off-by: Lee Jones --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7cf8f06..ebca232 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,10 @@ RUN set -x; BUILDDEPS="python make git g++" \ && npm install \ && npm cache clear --force \ && chown -R rocketchat:rocketchat /app \ +&& cd /app/bundle/programs/server/npm \ +&& npm uninstall sharp && npm install sharp \ +&& cd /app/bundle/programs/server/npm \ +&& npm uninstall grpc && npm install grpc \ && apt-get purge -y --auto-remove $BUILDDEPS USER rocketchat