Browse Source

Revert "docker: Use system libraries, don't bring your own"

This reverts commit 48728d3828.
travis-debug
nicolas.dorier 5 years ago
committed by Christian Decker
parent
commit
0d55dca50f
  1. 50
      Dockerfile

50
Dockerfile

@ -48,26 +48,29 @@ RUN mkdir /opt/litecoin && cd /opt/litecoin \
FROM debian:stretch-slim as builder FROM debian:stretch-slim as builder
ENV LIGHTNINGD_VERSION=master ENV LIGHTNINGD_VERSION=master
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates autoconf automake build-essential git libtool python python3 python3-mako wget gnupg dirmngr git gettext
ca-certificates \
autoconf \ RUN wget -q https://zlib.net/zlib-1.2.11.tar.gz \
automake \ && tar xvf zlib-1.2.11.tar.gz \
build-essential \ && cd zlib-1.2.11 \
git \ && ./configure \
libtool \ && make \
python \ && make install && cd .. && rm zlib-1.2.11.tar.gz && rm -rf zlib-1.2.11
python3 \
python3-mako \ RUN apt-get install -y --no-install-recommends unzip tclsh \
wget \ && wget -q https://www.sqlite.org/2018/sqlite-src-3260000.zip \
gnupg \ && unzip sqlite-src-3260000.zip \
dirmngr \ && cd sqlite-src-3260000 \
git \ && ./configure --enable-static --disable-readline --disable-threadsafe --disable-load-extension \
gettext \ && make \
unzip \ && make install && cd .. && rm sqlite-src-3260000.zip && rm -rf sqlite-src-3260000
tclsh \
libsqlite3-dev \ RUN wget -q https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz \
libgmp-dev \ && tar xvf gmp-6.1.2.tar.xz \
zlib1g-dev && cd gmp-6.1.2 \
&& ./configure --disable-assembly \
&& make \
&& make install && cd .. && rm gmp-6.1.2.tar.xz && rm -rf gmp-6.1.2
WORKDIR /opt/lightningd WORKDIR /opt/lightningd
COPY . /tmp/lightning COPY . /tmp/lightning
@ -79,12 +82,7 @@ RUN ./configure --prefix=/tmp/lightning_install --enable-static && make -j3 DEVE
FROM debian:stretch-slim as final FROM debian:stretch-slim as final
COPY --from=downloader /opt/tini /usr/bin/tini COPY --from=downloader /opt/tini /usr/bin/tini
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends socat inotify-tools \
socat \
inotify-tools \
libgmp10 \
libsqlite3-0 \
zlib1g \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ENV LIGHTNINGD_DATA=/root/.lightning ENV LIGHTNINGD_DATA=/root/.lightning

Loading…
Cancel
Save