31 lines
956 B
Docker
31 lines
956 B
Docker
FROM cloudron/base:0.10.0
|
|
MAINTAINER Authors name <support@cloudron.io>
|
|
|
|
RUN mkdir -p /app/code
|
|
WORKDIR /app/code
|
|
|
|
EXPOSE 8000
|
|
|
|
# Riot web
|
|
RUN curl -L https://github.com/vector-im/riot-web/releases/download/v0.9.7/vector-v0.9.7.tar.gz | tar -xz --strip-components 1 -f -
|
|
RUN ln -sf /app/data/riot_config.json /app/code/config.json
|
|
|
|
# Nginx
|
|
RUN rm /etc/nginx/sites-enabled/*
|
|
ADD nginx_matrix.conf /etc/nginx/sites-enabled/
|
|
RUN rm -rf /var/lib/nginx && ln -sf /app/data/nginx /var/lib/nginx
|
|
RUN rm -rf /var/log/nginx && ln -sf /app/data/nginx_log /var/log/nginx
|
|
|
|
# Synapse
|
|
RUN apt update && apt-get install -y build-essential python2.7-dev libffi-dev \
|
|
python-wheel python-pip python-setuptools sqlite3 \
|
|
libssl-dev libjpeg-dev libxslt1-dev
|
|
RUN pip install --upgrade setuptools
|
|
RUN pip install https://github.com/matrix-org/synapse/tarball/master
|
|
|
|
RUN chown -R www-data.www-data /app/code
|
|
|
|
ADD start_matrix.sh /app/
|
|
|
|
CMD [ "/app/start_matrix.sh" ]
|