Skip to content

Commit 4aca328

Browse files
docker: Install arch independent libraries separately
1 parent 69f0015 commit 4aca328

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
@@ -119,17 +119,20 @@ ENV LIGHTNINGD_VERSION=master
119119

120120
RUN dpkg --add-architecture ${target_arch_dpkg}
121121

122-
#TODO: python3-dev needs QEMU for post install scripts. find a workaround to not use QEMU
122+
# Install architecture-independent libraries
123123
RUN apt-get update && \
124124
apt-get install -qq -y --no-install-recommends \
125-
pkg-config:${target_arch_dpkg} \
126-
libffi-dev:${target_arch_dpkg} \
127-
python3-dev:${target_arch_dpkg} \
128-
libicu-dev:${target_arch_dpkg} \
129-
zlib1g-dev:${target_arch_dpkg} \
130-
libsqlite3-dev:${target_arch_dpkg} \
131-
libpq-dev:${target_arch_dpkg} \
132-
crossbuild-essential-${target_arch_dpkg}
125+
python3-dev
126+
127+
# Install target-arch libraries
128+
RUN apt-get install -qq -y --no-install-recommends \
129+
pkg-config:${target_arch_dpkg} \
130+
libffi-dev:${target_arch_dpkg} \
131+
libicu-dev:${target_arch_dpkg} \
132+
zlib1g-dev:${target_arch_dpkg} \
133+
libsqlite3-dev:${target_arch_dpkg} \
134+
libpq-dev:${target_arch_dpkg} \
135+
crossbuild-essential-${target_arch_dpkg}
133136

134137
ARG AR=${target_arch}-ar
135138
ARG AS=${target_arch}-as

0 commit comments

Comments
 (0)