merge multiple installs into one

This commit is contained in:
Damian Mee 2019-05-11 14:49:00 +07:00
parent 8c00920b3d
commit 52827bb217
No known key found for this signature in database
GPG Key ID: 2F961EAB8789725D

View File

@ -6,20 +6,24 @@ COPY --from=lncm/berkeleydb:db-4.8.30.NC /opt /opt
# Replace `http:` repositories with `https:` ones # Replace `http:` repositories with `https:` ones
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache add autoconf
RUN apk --no-cache add automake # install packages necessary to build Bitcoind
RUN apk --no-cache add boost-dev RUN apk add --no-cache --update \
RUN apk --no-cache add build-base autoconf \
RUN apk --no-cache add chrpath automake \
RUN apk --no-cache add file boost-dev \
RUN apk --no-cache add gnupg build-base \
RUN apk --no-cache add libevent-dev chrpath \
RUN apk --no-cache add libressl file \
RUN apk --no-cache add libressl-dev gnupg \
RUN apk --no-cache add libtool libevent-dev \
RUN apk --no-cache add linux-headers libressl \
RUN apk --no-cache add protobuf-dev libressl-dev \
RUN apk --no-cache add zeromq-dev libtool \
linux-headers \
protobuf-dev \
zeromq-dev
RUN set -ex \ RUN set -ex \
&& for key in \ && for key in \
90C8019E36C2E964 \ 90C8019E36C2E964 \
@ -85,7 +89,9 @@ LABEL maintainer.0="nolim1t (@nolim1t)" \
# TODO: Eliminating the two RUN lines below is necessary to cross-compile… # TODO: Eliminating the two RUN lines below is necessary to cross-compile…
# Replace `http:` repositories with `https:` ones # Replace `http:` repositories with `https:` ones
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache add \
RUN apk --no-cache --update \
add \
boost \ boost \
boost-program_options \ boost-program_options \
libevent \ libevent \