Skip to content

Commit 4407b6b

Browse files
atelalclaude
andcommitted
fix: add unsupported architecture guard for geoipupdate
Add else clause to exit with a descriptive error on unsupported architectures, matching the wkhtmltopdf pattern above. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4286e93 commit 4407b6b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ RUN --mount=type=cache,target=/tmp/downloads,sharing=locked \
222222
GEOIP_CHECKSUM=$GEOIP_ARM64_CHECKSUM; \
223223
elif [ "$TARGETARCH" = "amd64" ]; then \
224224
GEOIP_CHECKSUM=$GEOIP_AMD64_CHECKSUM; \
225+
else \
226+
echo "Unsupported architecture for geoipupdate: $TARGETARCH" >&2; \
227+
exit 1; \
225228
fi; \
226229
GEOIP_DEB="/tmp/downloads/geoipupdate_${GEOIP_UPDATER_VERSION}_linux_${TARGETARCH}.deb"; \
227230
if [ ! -f "$GEOIP_DEB" ] || ! echo "${GEOIP_CHECKSUM} ${GEOIP_DEB}" | sha256sum -c - >/dev/null 2>&1; then \

0 commit comments

Comments
 (0)