diff --git a/Dockerfile b/Dockerfile index 59a5181..ebca232 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,15 +36,22 @@ ENV RC_VERSION 1.1.1 WORKDIR /app -RUN curl -fSL "https://releases.rocket.chat/${RC_VERSION}/download" -o rocket.chat.tgz \ +RUN set -x; BUILDDEPS="python make git g++" \ +&& apt-get update && apt-get install -y --no-install-recommends ${BUILDDEPS} \ +&& curl -fSL "https://releases.rocket.chat/${RC_VERSION}/download" -o rocket.chat.tgz \ && curl -fSL "https://releases.rocket.chat/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \ && gpg --batch --verify rocket.chat.tgz.asc rocket.chat.tgz \ -&& tar zxvf rocket.chat.tgz \ +&& tar zxf rocket.chat.tgz \ && rm rocket.chat.tgz rocket.chat.tgz.asc \ && cd bundle/programs/server \ && npm install \ && npm cache clear --force \ -&& chown -R rocketchat:rocketchat /app +&& 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