-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3580b9
commit 40d4f47
Showing
2 changed files
with
13 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
FROM node:0.10 | ||
FROM rocketchat/base | ||
|
||
# IMPORTANT - FOR TESTING ONLY - DO NOT USE THIS FOR DEVELOPMENT OR PRODUCTION! | ||
MAINTAINER [email protected] | ||
ENV RC_VERSION develop | ||
|
||
RUN groupadd -r rocketchat \ | ||
&& useradd -r -g rocketchat rocketchat | ||
MAINTAINER [email protected] | ||
|
||
VOLUME /app/uploads | ||
|
||
# gpg: key 4FD08014: public key "Rocket.Chat Buildmaster <[email protected]>" imported | ||
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0E163286C20D07B9787EBE9FD7F9D0414FD08104 | ||
|
||
ENV RC_VERSION develop | ||
|
||
WORKDIR /app | ||
|
||
RUN curl -fSL "https://rocket.chat/releases/${RC_VERSION}/download" -o rocket.chat.tgz \ | ||
&& curl -fSL "https://rocket.chat/releases/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \ | ||
&& gpg --verify rocket.chat.tgz.asc \ | ||
&& tar zxvf rocket.chat.tgz \ | ||
&& rm rocket.chat.tgz \ | ||
&& cd bundle/programs/server \ | ||
&& npm install | ||
RUN set -x \ | ||
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/download" -o rocket.chat.tgz \ | ||
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \ | ||
&& gpg --verify rocket.chat.tgz.asc \ | ||
&& tar -zxf rocket.chat.tgz -C /app \ | ||
&& rm rocket.chat.tgz rocket.chat.tgz.asc \ | ||
&& cd /app/bundle/programs/server \ | ||
&& npm install \ | ||
&& npm cache clear | ||
|
||
USER rocketchat | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM rocketchat/base | ||
|
||
ENV RC_VERSION develop | ||
ENV RC_VERSION latest | ||
|
||
MAINTAINER [email protected] | ||
|
||
|