Skip to content

Commit 3c33007

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 3c2373c commit 3c33007

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
@@ -47,6 +47,10 @@ RUN set -x; BUILDDEPS="python make git g++" \
4747
&& npm install \
4848
&& npm cache clear --force \
4949
&& chown -R rocketchat:rocketchat /app \
50+
&& cd /app/bundle/programs/server/npm \
51+
&& npm uninstall sharp && npm install sharp \
52+
&& cd /app/bundle/programs/server/npm \
53+
&& npm uninstall grpc && npm install grpc \
5054
&& apt-get purge -y --auto-remove $BUILDDEPS
5155

5256
USER rocketchat

0 commit comments

Comments
 (0)