Dockerfile
This commit is contained in:
@@ -16,7 +16,7 @@ EXPOSE 4999 80
|
||||
|
||||
## Debian update; install dependencies for GPG
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update ; \
|
||||
RUN apt-get update -y ; \
|
||||
apt-get upgrade -y ; \
|
||||
apt-get -y install --no-install-recommends gpg gpg-agent ; \
|
||||
apt-get clean ; \
|
||||
@@ -31,7 +31,7 @@ FROM updated-debian AS development
|
||||
|
||||
## Debian update; install dependencies for: C++ compiler; OpenPGP; Libbitcoin
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update
|
||||
RUN apt-get -y update
|
||||
RUN apt-get -y install --no-install-recommends build-essential libssl-dev libcurl4-openssl-dev make cmake gcc g++ git
|
||||
RUN apt-get -y install --no-install-recommends libgmp-dev libbz2-dev libzip-dev
|
||||
RUN apt-get -y install --no-install-recommends autoconf automake libtool pkg-config wget
|
||||
@@ -67,7 +67,7 @@ RUN su -l --shell /bin/bash $UNAME -c 'wget https://raw.githubusercontent.com/li
|
||||
sed -i '/wget / s/wget.*$/while true; do & \&\& break; done/' install.sh ; \
|
||||
./install.sh --build-boost --build-zmq --disable-shared
|
||||
|
||||
## Install BitDeals dm
|
||||
## Install BitDeals module (apostol-dm)
|
||||
RUN su -l --shell /bin/bash $UNAME -c 'cd '$UHOME' ; \
|
||||
git clone https://bitbucket.org/bitdeals/apostol-dm.git ; \
|
||||
cd apostol-dm ; \
|
||||
@@ -79,6 +79,8 @@ RUN su -l --shell /bin/bash $UNAME -c 'cd '$UHOME' ; \
|
||||
|
||||
FROM updated-debian
|
||||
|
||||
ARG UNAME
|
||||
|
||||
COPY --from=development /usr/local/ /usr/local/
|
||||
COPY --from=development /etc/dm/ /etc/dm/
|
||||
COPY --from=development /usr/sbin/dm /usr/sbin/dm
|
||||
@@ -87,10 +89,15 @@ COPY --from=development /etc/init.d/dm /etc/init.d/dm
|
||||
#dm: error while loading shared libraries: libOpenPGP.so: cannot open shared object file: No such file or directory
|
||||
RUN ldconfig
|
||||
|
||||
## Copy BitDeals PGP key
|
||||
#ADD --chown=$UNAME:$UNAME https://www.example.com/bitdeals.asc /etc/dm/bitdeals.asc
|
||||
COPY --chown=$UNAME:$UNAME ./bitdeals.asc /etc/dm/bitdeals.asc
|
||||
COPY --chown=$UNAME:$UNAME ./bitdeals-test.asc /etc/dm/bitdeals-test.asc
|
||||
|
||||
## Copy configuration helper script
|
||||
#ADD https://bitbucket.org/bitdeals/apostol-dm/raw/master/docker/entrypoint.sh /entrypoint.sh
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod 755 /entrypoint.sh
|
||||
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod 755 /usr/local/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user