Skip to content

Commit e4582d5

Browse files
Change Alpine package mirror
The default package mirror is having some trouble with package signatures for 32-bit architectures. A solution is to change to another one. More info in issue [#70][1]. [1]: #70
1 parent de5778a commit e4582d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Dockerfile-alpine

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ LABEL maintainer="Jonas Alfredsson <jonas.alfredsson@protonmail.com>"
33

44
# Do a single run command to make the intermediary containers smaller.
55
RUN set -ex && \
6+
# The default mirror has some issues with bad sigantures for the 32-bit
7+
# packages, so let's use another one until it is fixed.
8+
echo 'http://dl-2.alpinelinux.org/alpine/v3.13/main' > /etc/apk/repositories && \
9+
echo 'http://dl-2.alpinelinux.org/alpine/v3.13/community' >> /etc/apk/repositories && \
610
# Install packages necessary during the build phase (for all architectures).
711
apk add --no-cache \
812
cargo \
@@ -19,7 +23,7 @@ RUN set -ex && \
1923
sed \
2024
&& \
2125
# Because of the bug mentioned in issue #42 we must use Bash <5.1.x for now.
22-
echo 'http://dl-cdn.alpinelinux.org/alpine/v3.12/main' >> /etc/apk/repositories && \
26+
echo 'http://dl-2.alpinelinux.org/alpine/v3.12/main' >> /etc/apk/repositories && \
2327
apk add --no-cache 'bash<5.1' && \
2428
# Install the latest version of PIP, Setuptools and Wheel.
2529
curl -L 'https://bootstrap.pypa.io/get-pip.py' | python3 && \

0 commit comments

Comments
 (0)