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 <[email protected]>
  • Loading branch information
Lee Jones committed Nov 29, 2018
1 parent a71931f commit 1a0b88e
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 @@ -26,6 +26,10 @@ RUN set -x; BUILDDEPS="python make git g++" \
&& rm rocket.chat.tgz rocket.chat.tgz.asc \
&& cd bundle/programs/server \
&& npm install \
&& 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 1a0b88e

Please sign in to comment.