Skip to content

Commit 2ee3f45

Browse files
docker: Install arch independent libraries separately
1 parent cbefbf2 commit 2ee3f45

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

Dockerfile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,20 @@ ENV LIGHTNINGD_VERSION=master
100100

101101
RUN dpkg --add-architecture ${target_arch_dpkg}
102102

103-
#TODO: python3-dev needs QEMU for post install scripts. find a workaround to not use QEMU
103+
# Install architecture-independent libraries
104104
RUN apt-get update && \
105105
apt-get install -qq -y --no-install-recommends \
106-
pkg-config:${target_arch_dpkg} \
107-
libffi-dev:${target_arch_dpkg} \
108-
python3-dev:${target_arch_dpkg} \
109-
libicu-dev:${target_arch_dpkg} \
110-
zlib1g-dev:${target_arch_dpkg} \
111-
libsqlite3-dev:${target_arch_dpkg} \
112-
libpq-dev:${target_arch_dpkg} \
113-
crossbuild-essential-${target_arch_dpkg}
106+
python3-dev
107+
108+
# Install target-arch libraries
109+
RUN apt-get install -qq -y --no-install-recommends \
110+
pkg-config:${target_arch_dpkg} \
111+
libffi-dev:${target_arch_dpkg} \
112+
libicu-dev:${target_arch_dpkg} \
113+
zlib1g-dev:${target_arch_dpkg} \
114+
libsqlite3-dev:${target_arch_dpkg} \
115+
libpq-dev:${target_arch_dpkg} \
116+
crossbuild-essential-${target_arch_dpkg}
114117

115118
ARG AR=${target_arch}-ar
116119
ARG AS=${target_arch}-as

0 commit comments

Comments
 (0)