Merge pull request #6024 from nishimaki10/fix-dockerfile

Fix docker builds
pull/6029/head
Gabriel Engel 8 years ago committed by GitHub
commit 56cd637a16
  1. 3
      .docker/develop/Dockerfile
  2. 4
      .docker/latest/Dockerfile

@ -9,12 +9,13 @@ RUN set -x \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \
&& mkdir /app \
&& gpg --verify rocket.chat.tgz.asc \
&& mkdir -p /app \
&& 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 \
&& chown rocketchat:rocketchat /app -R
&& chown -R rocketchat:rocketchat /app
USER rocketchat

@ -9,12 +9,13 @@ RUN set -x \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \
&& mkdir /app \
&& gpg --verify rocket.chat.tgz.asc \
&& mkdir -p /app \
&& 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 \
&& chown rocketchat:rocketchat /app -R
&& chown -R rocketchat:rocketchat /app
USER rocketchat
@ -24,6 +25,7 @@ WORKDIR /app/bundle
# needs a mongoinstance - defaults to container linking with alias 'mongo'
ENV MONGO_URL=mongodb://mongo:27017/rocketchat \
MONGO_OPLOG_URL=mongodb://mongo:27017/local \
HOME=/tmp \
PORT=3000 \
ROOT_URL=http://localhost:3000 \

Loading…
Cancel
Save