1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-02 03:37:40 +02:00

add rocket.chat-arm

This commit is contained in:
kev 2018-01-29 22:42:56 +08:00
parent 5722b83762
commit 059919c243
3 changed files with 62 additions and 1 deletions

View File

@ -0,0 +1,46 @@
#
# Dockerfile for rocket.chat-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache gnupg nodejs nodejs-npm
RUN groupadd -r rocketchat \
&& useradd -r -g rocketchat rocketchat \
&& mkdir -p /app/uploads \
&& chown rocketchat.rocketchat /app/uploads
VOLUME /app/uploads
# gpg: key 4FD08014: public key "Rocket.Chat Buildmaster <buildmaster@rocket.chat>" imported
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0E163286C20D07B9787EBE9FD7F9D0414FD08104
ENV RC_VERSION 0.60.4
WORKDIR /app
RUN 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 \
&& rm rocket.chat.tgz rocket.chat.tgz.asc \
&& cd bundle/programs/server \
&& npm install
USER rocketchat
WORKDIR /app/bundle
# needs a mongoinstance - defaults to container linking with alias 'db'
ENV DEPLOY_METHOD=docker-official \
MONGO_URL=mongodb://db:27017/meteor \
HOME=/tmp \
PORT=3000 \
ROOT_URL=http://localhost:3000 \
Accounts_AvatarStorePath=/app/uploads
EXPOSE 3000
CMD ["node", "main.js"]

View File

@ -0,0 +1,15 @@
rocketchat:
image: rocket.chat
ports:
- "3000:3000"
links:
- mongo:db
environment:
- ROOT_URL=http://chat.easypi.pro
restart: always
mongo:
image: easypi/mongo-arm
ports:
- "27017:27017"
restart: always

View File

@ -5,7 +5,7 @@ rocketchat:
links:
- mongo:db
environment:
- ROOT_URL=http://chat.foobar.site
- ROOT_URL=http://chat.easypi.pro
restart: always
mongo: