forked from CounterpartyXCP/counterblock
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
29 lines (23 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG FROM_TAG=latest
FROM monaparty/base:$FROM_TAG
LABEL org.opencontainers.image.authors="Monaparty Developers <[email protected]>"
LABEL org.opencontainers.image.url="https://github.com/monaparty/counterblock"
LABEL org.opencontainers.image.title="The Monaparty version of Counterblock."
LABEL org.opencontainers.image.description="This is a fork from Counterparty (aka XCP)."
# Install extra counterblock deps
RUN apt-get update && apt-get -y upgrade && apt-get -y install libjpeg8-dev libgmp-dev libzmq3-dev libxml2-dev libxslt-dev zlib1g-dev libimage-exiftool-perl libevent-dev cython
# Install
COPY requirements.txt /counterblock/
COPY setup.py /counterblock/
COPY ./counterblock/lib/config.py /counterblock/counterblock/lib/
WORKDIR /counterblock
RUN pip3 install -r requirements.txt
COPY . /counterblock
RUN python3 setup.py develop
COPY docker/server.conf /root/.config/counterblock/server.conf
COPY docker/modules.conf /root/.config/counterblock/modules.conf
COPY docker/counterwallet.conf /root/.config/counterblock/counterwallet.conf
COPY docker/start.sh /usr/local/bin/start.sh
RUN chmod a+x /usr/local/bin/start.sh
EXPOSE 4100 4101 4102 14100 14101 14102
ENTRYPOINT ["start.sh"]