2014-05-05 10:20:01 +00:00
|
|
|
#
|
|
|
|
# Dockerfile for building Twister peer-to-peer micro-blogging
|
|
|
|
#
|
2020-12-18 01:34:35 +00:00
|
|
|
FROM ubuntu:20.04
|
2014-05-05 10:20:01 +00:00
|
|
|
|
2014-05-25 23:20:02 +00:00
|
|
|
# Install twister-core
|
|
|
|
RUN apt-get update
|
2020-12-18 01:42:39 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y iproute2 git autoconf libtool build-essential libboost-all-dev libssl-dev libdb++-dev libminiupnpc-dev automake && apt-get clean
|
2020-12-18 01:34:35 +00:00
|
|
|
RUN git clone https://github.com/miguelfreitas/twister-core.git
|
|
|
|
COPY . /twister-core
|
2014-05-25 23:20:02 +00:00
|
|
|
RUN cd twister-core && \
|
|
|
|
./bootstrap.sh && \
|
|
|
|
make
|
2014-05-05 10:20:01 +00:00
|
|
|
|
2014-05-25 23:20:02 +00:00
|
|
|
# Install twister-html
|
|
|
|
RUN git clone https://github.com/miguelfreitas/twister-html.git /twister-html
|
2014-05-05 10:20:01 +00:00
|
|
|
|
2014-05-25 23:20:02 +00:00
|
|
|
# Configure HOME directory
|
|
|
|
# and persist twister data directory as a volume
|
|
|
|
ENV HOME /root
|
|
|
|
VOLUME /root/.twister
|
2014-05-05 10:20:01 +00:00
|
|
|
|
2014-05-25 23:20:02 +00:00
|
|
|
# Run twisterd by default
|
2015-11-12 07:55:46 +00:00
|
|
|
ENTRYPOINT ["/twister-core/docker-entrypoint.sh"]
|
2014-05-25 23:20:02 +00:00
|
|
|
EXPOSE 28332
|