Skip to content

Commit 72f04e4

Browse files
authored
Check the package architecture for Debian packages (#61)
* Check the package architecture for Debian packages * remove targetarch
1 parent d1ea77d commit 72f04e4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web-build/Dockerfile.chromium

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#ddev-generated
22
RUN sudo apt update -y \
33
&& sudo apt remove chromium* -y \
4-
&& wget https://ftp.debian.org/debian/pool/main/c/chromium/chromium_136.0.7103.113-1~deb12u1_amd64.deb \
5-
&& wget https://ftp.debian.org/debian/pool/main/c/chromium/chromium-common_136.0.7103.113-1~deb12u1_amd64.deb \
6-
&& wget https://ftp.debian.org/debian/pool/main/c/chromium/chromium-driver_136.0.7103.113-1~deb12u1_amd64.deb \
4+
&& ARCH=$(dpkg --print-architecture) \
5+
&& wget https://ftp.debian.org/debian/pool/main/c/chromium/chromium_136.0.7103.113-1~deb12u1_${ARCH}.deb \
6+
&& wget https://ftp.debian.org/debian/pool/main/c/chromium/chromium-common_136.0.7103.113-1~deb12u1_${ARCH}.deb \
7+
&& wget https://ftp.debian.org/debian/pool/main/c/chromium/chromium-driver_136.0.7103.113-1~deb12u1_${ARCH}.deb \
78
&& sudo apt install ./chromium*.deb -y \
89
&& sudo apt-mark hold chromium chromium-common chromium-driver \
910
&& rm -f chromium*.deb

0 commit comments

Comments
 (0)