build: harden installer smoke apt
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
FROM ubuntu:24.04
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN set -eux; \
|
||||||
&& apt-get install -y --no-install-recommends \
|
for attempt in 1 2 3; do \
|
||||||
|
if apt-get update -o Acquire::Retries=3; then break; fi; \
|
||||||
|
echo "apt-get update failed (attempt ${attempt})" >&2; \
|
||||||
|
if [ "${attempt}" -eq 3 ]; then exit 1; fi; \
|
||||||
|
sleep 3; \
|
||||||
|
done; \
|
||||||
|
apt-get -o Acquire::Retries=3 install -y --no-install-recommends \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
FROM node:22-bookworm-slim
|
FROM node:22-bookworm-slim
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN set -eux; \
|
||||||
&& apt-get install -y --no-install-recommends \
|
for attempt in 1 2 3; do \
|
||||||
|
if apt-get update -o Acquire::Retries=3; then break; fi; \
|
||||||
|
echo "apt-get update failed (attempt ${attempt})" >&2; \
|
||||||
|
if [ "${attempt}" -eq 3 ]; then exit 1; fi; \
|
||||||
|
sleep 3; \
|
||||||
|
done; \
|
||||||
|
apt-get -o Acquire::Retries=3 install -y --no-install-recommends \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
|
|||||||
Reference in New Issue
Block a user