Skip to content

Commit

Permalink
Dockerfile: Rebuild Sharp and GRPC modules
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lee Jones committed Jun 13, 2019
1 parent 3c2373c commit 3c33007
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c33007

Please sign in to comment.