34 lines
856 B
Docker
34 lines
856 B
Docker
|
# A minimal container for testing PyBitmessage
|
||
|
|
||
|
FROM debian:stretch
|
||
|
|
||
|
RUN apt-get update
|
||
|
|
||
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
||
|
ca-certificates git python python-stem tor
|
||
|
|
||
|
# RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
||
|
# python-qt4 python-xvfbwrapper
|
||
|
|
||
|
EXPOSE 8444 8442
|
||
|
|
||
|
ENV HOME /home/bitmessage
|
||
|
ENV BITMESSAGE_HOME ${HOME}
|
||
|
|
||
|
WORKDIR ${HOME}
|
||
|
|
||
|
# Prepare local setuptools setup
|
||
|
RUN git clone https://github.com/pypa/setuptools
|
||
|
RUN cd setuptools; git checkout v44.1.1; python bootstrap.py; python setup.py install --user; cd ..
|
||
|
RUN mv setuptools setuptools.keep; mv .local/lib/python2.7/site-packages .local/lib/python2.7/site-packages.keep
|
||
|
|
||
|
ADD . ${HOME}
|
||
|
|
||
|
# Create a user
|
||
|
RUN useradd bitmessage && chown -R bitmessage ${HOME}
|
||
|
|
||
|
USER bitmessage
|
||
|
|
||
|
|
||
|
CMD ["python", "src/bitmessagemain.py", "-t"]
|