twister-react/docker/Dockerfile

45 lines
1.1 KiB
Docker
Raw Normal View History

2016-01-12 14:17:50 +01:00
#
# Dockerfile for building Twister peer-to-peer micro-blogging
#
2017-03-19 00:53:35 +01:00
FROM ubuntu:14.04
2016-01-12 14:17:50 +01:00
2017-03-19 00:53:35 +01:00
WORKDIR /opt
USER root
2016-01-12 14:17:50 +01:00
RUN apt-get update
2017-03-19 00:53:35 +01:00
RUN apt-get install -y git autoconf libtool build-essential libboost-all-dev libssl-dev libdb++-dev libminiupnpc-dev \
supervisor nodejs nodejs-legacy npm && \
apt-get clean
2016-01-12 14:17:50 +01:00
RUN git clone https://github.com/miguelfreitas/twister-core.git
RUN cd twister-core && \
./bootstrap.sh && \
make
RUN git clone https://github.com/Tschaul/twister-react.git
RUN git clone https://github.com/Tschaul/twister-lib-js.git
RUN git clone https://github.com/digital-dreamer/twister-proxy.git
RUN npm install -g browserify react-tools
RUN cd twister-lib-js \ npm install
2017-03-19 00:53:35 +01:00
RUN cd twister-proxy && npm install
2016-01-12 14:17:50 +01:00
2017-03-19 00:53:35 +01:00
RUN mv twister-react/index.html twister-react/home.html
2016-01-12 14:17:50 +01:00
COPY settings.json twister-proxy/
2017-03-19 00:53:35 +01:00
RUN mkdir -p /root/.twister
COPY twister.conf /root/.twister/twister.conf
RUN chmod 600 /root/.twister/twister.conf
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
VOLUME ["/root/.twister"]
CMD ["/usr/bin/supervisord"]
ENTRYPOINT []
EXPOSE 80