Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit f467849

Browse files
committed
Use a fast Alpine package mirror
Without forcing a specific Alpine package mirror, it seems to use the very slow default one. This means building the docker image can take 2+ hours (as happened yesterday). With this change in place, building the docker image takes around 5-6 minutes.
1 parent a86cc99 commit f467849

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: docker/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ RUN addgroup -S rabbitmq && \
2121
adduser -S -D -h /var/lib/rabbitmq -s /sbin/nologin -g "Linux User,,," -G rabbitmq rabbitmq && \
2222
chown -Rh rabbitmq: /opt/rabbitmq /var/log/rabbitmq
2323

24+
# Use a fast Australian mirror for the Alpine package repositories
25+
# Without doing this, building the image can take 2+ hours. :(
26+
RUN echo "https://mirror.aarnet.edu.au/pub/alpine/v3.18/main" > /etc/apk/repositories && \
27+
echo "https://mirror.aarnet.edu.au/pub/alpine/v3.18/community" >> /etc/apk/repositories
28+
2429
# Install Git, Go, Memcached, Minio, and PostgreSQL
2530
RUN apk update && \
2631
apk upgrade && \

0 commit comments

Comments
 (0)