Skip to content
Snippets Groups Projects
Dockerfile 847 B
Newer Older
Gabriel Engel's avatar
Gabriel Engel committed
FROM rocketchat/base:4
ENV RC_VERSION develop
MAINTAINER buildmaster@rocket.chat
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 \
 && chown rocketchat:rocketchat /app -R
VOLUME /app/uploads

WORKDIR /app/bundle

# needs a mongoinstance - defaults to container linking with alias 'mongo'
ENV MONGO_URL=mongodb://mongo:27017/rocketchat \
Gabriel Engel's avatar
Gabriel Engel committed
    HOME=/tmp \
    PORT=3000 \
    ROOT_URL=http://localhost:3000 \
Gabriel Engel's avatar
Gabriel Engel committed
    Accounts_AvatarStorePath=/app/uploads