diff --git a/packages/Dockerfile.min b/packages/Dockerfile.min new file mode 100644 index 00000000..a27bd1d2 --- /dev/null +++ b/packages/Dockerfile.min @@ -0,0 +1,33 @@ +# 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"]