Skip to content

Commit 1a0b88e

Browse files
author
Lee Jones
committed
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 <lee.jones@linaro.org>
1 parent a71931f commit 1a0b88e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ RUN set -x; BUILDDEPS="python make git g++" \
2626
&& rm rocket.chat.tgz rocket.chat.tgz.asc \
2727
&& cd bundle/programs/server \
2828
&& npm install \
29+
&& cd /app/bundle/programs/server/npm \
30+
&& npm uninstall sharp && npm install sharp \
31+
&& cd /app/bundle/programs/server/npm \
32+
&& npm uninstall grpc && npm install grpc \
2933
&& apt-get purge -y --auto-remove $BUILDDEPS
3034

3135
USER rocketchat

0 commit comments

Comments
 (0)