Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down