Skip to content

Commit 11ef6bf

Browse files
authored
Disable the apk community repository (#25)
1 parent b202815 commit 11ef6bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ ARG snapshot_versions_type=prod
2222
# certificate.
2323
FROM docker.io/alpine:3.21.0@sha256:2c43f33bd1502ec7818bce9eea60e062d04eeadc4aa31cad9dabecb1e48b647b as snapshot-versions-getter-base
2424

25+
# Remove the community repository. This is to ensure that we only rely on
26+
# packages with future availability.
27+
RUN sed -i /community/d /etc/apk/repositories && cat /etc/apk/repositories
28+
2529
# Production snapshot versions
2630
FROM snapshot-versions-getter-base as snapshot-versions-getter-prod
2731

28-
RUN apk add wget
32+
RUN apk add --no-cache wget
2933

3034
RUN wget --check-certificate https://delpa.org/snapshot_versions.json && \
3135
wget --check-certificate https://delpa.org/snapshot_versions.json.sha256

0 commit comments

Comments
 (0)