mirror of
https://github.com/element-hq/synapse.git
synced 2025-12-08 00:00:52 -05:00
Dockerfile: set package arch via APT config option (#18271)
This commit is contained in:
parent
92a29dcffc
commit
bd08a01fc8
1
changelog.d/18271.docker
Normal file
1
changelog.d/18271.docker
Normal file
@ -0,0 +1 @@
|
|||||||
|
Specify the architecture of installed packages via an APT config option, which is more reliable than appending package names with ":{arch}".
|
||||||
@ -148,7 +148,7 @@ RUN \
|
|||||||
for arch in arm64 amd64; do \
|
for arch in arm64 amd64; do \
|
||||||
mkdir -p /tmp/debs-${arch} && \
|
mkdir -p /tmp/debs-${arch} && \
|
||||||
cd /tmp/debs-${arch} && \
|
cd /tmp/debs-${arch} && \
|
||||||
apt-get download $(sed "s/$/:${arch}/" /tmp/pkg-list); \
|
apt-get -o APT::Architecture="${arch}" download $(cat /tmp/pkg-list); \
|
||||||
done
|
done
|
||||||
|
|
||||||
# Extract the debs for each architecture
|
# Extract the debs for each architecture
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user