Skip to content
Snippets Groups Projects
Dockerfile 802 B
Newer Older
FROM rocketchat/base
Gabriel Engel's avatar
Gabriel Engel committed

ENV RC_VERSION latest
Gabriel Engel's avatar
Gabriel Engel committed

MAINTAINER buildmaster@rocket.chat
Gabriel Engel's avatar
Gabriel Engel committed

VOLUME /app/uploads
Gabriel Engel's avatar
Gabriel Engel committed

RUN set -x \
Gabriel Engel's avatar
Gabriel Engel committed
 && 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 \
Gabriel Engel's avatar
Gabriel Engel committed
 && npm cache clear

USER rocketchat

WORKDIR /app/bundle

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

EXPOSE 3000

CMD ["node", "main.js"]