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:
parent
5722b83762
commit
059919c243
46
rocket.chat/arm/Dockerfile
Normal file
46
rocket.chat/arm/Dockerfile
Normal 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"]
|
15
rocket.chat/arm/docker-compose.yml
Normal file
15
rocket.chat/arm/docker-compose.yml
Normal 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
|
@ -5,7 +5,7 @@ rocketchat:
|
||||
links:
|
||||
- mongo:db
|
||||
environment:
|
||||
- ROOT_URL=http://chat.foobar.site
|
||||
- ROOT_URL=http://chat.easypi.pro
|
||||
restart: always
|
||||
|
||||
mongo:
|
Loading…
Reference in New Issue
Block a user