Spaces:
Runtime error
Runtime error
# Base image for Rocket.Chat | |
FROM rocketchat/base:8 | |
ENV RC_VERSION 0.65.2 | |
MAINTAINER [email protected] | |
# Install Rocket.Chat | |
RUN set -x \ | |
&& curl -SLf "https://releases.rocket.chat/${RC_VERSION}/download/" -o rocket.chat.tgz \ | |
&& curl -SLf "https://releases.rocket.chat/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \ | |
&& 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 --force \ | |
&& chown -R rocketchat:rocketchat /app | |
# Update sources to use the Debian archive | |
RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|' /etc/apt/sources.list && \ | |
sed -i '/security.debian.org/d' /etc/apt/sources.list && \ | |
apt-get update && \ | |
apt-get install -y socat && \ | |
rm -rf /var/lib/apt/lists/* | |
USER rocketchat | |
VOLUME /app/uploads | |
WORKDIR /app/bundle | |
# Environment settings for Rocket.Chat | |
ENV DEPLOY_METHOD=docker \ | |
NODE_ENV=production \ | |
MONGO_URL=mongodb://mongo:27017/rocketchat \ | |
HOME=/tmp \ | |
PORT=3000 \ | |
ROOT_URL=http://localhost:3000 \ | |
Accounts_AvatarStorePath=/app/uploads | |
# Expose port 7860 externally | |
EXPOSE 7860 | |
# Run socat to forward port 7860 to 3000 and start Rocket.Chat | |
CMD socat TCP-LISTEN:7860,reuseaddr,fork TCP:localhost:3000 & \ | |
node main.js | |