Skip to content

Commit b202815

Browse files
authoredJan 6, 2025··
Use alpine instead of busybox for getting snapshot_versions.json (#24)
Because busybox's wget can't verify TLS certificates, we use alpine and install the real wget instead.
1 parent c634983 commit b202815

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎Dockerfile

+7-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@
1818
# snapshot versions, either prod or test
1919
ARG snapshot_versions_type=prod
2020

21-
FROM docker.io/busybox:1.36.1@sha256:7c3c3cea5d4d6133d6a694d23382f6a7b32652f23855abdba3eb039ca5995447 as snapshot-versions-getter-base
21+
# Use alpine instead of busybox here, because busybox's wget can't verify TLS
22+
# certificate.
23+
FROM docker.io/alpine:3.21.0@sha256:2c43f33bd1502ec7818bce9eea60e062d04eeadc4aa31cad9dabecb1e48b647b as snapshot-versions-getter-base
2224

2325
# Production snapshot versions
2426
FROM snapshot-versions-getter-base as snapshot-versions-getter-prod
2527

26-
RUN wget https://delpa.org/snapshot_versions.json && \
27-
wget https://delpa.org/snapshot_versions.json.sha256
28+
RUN apk add wget
29+
30+
RUN wget --check-certificate https://delpa.org/snapshot_versions.json && \
31+
wget --check-certificate https://delpa.org/snapshot_versions.json.sha256
2832

2933
# Verify that snapshot_versions.json is in the sha256 checksum file and verify
3034
# checksum

0 commit comments

Comments
 (0)
Please sign in to comment.