Skip to content

Commit cf5d948

Browse files
authored
Update dockerfile with missing mounts (#61454)
1 parent 01f894d commit cf5d948

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ FROM ghcr.io/github/gh-base-image/gh-base-noble:20260505-222701-gb8f4d82d0@sha25
1818
# https://github.com/nodejs/release#release-schedule
1919
# Ubuntu's apt-get install nodejs is _very_ outdated
2020
# Must run as root
21-
RUN apt-get -qq update && apt-get -qq install --no-install-recommends curl git \
21+
22+
# From https://thehub.github.com/epd/engineering/devops/ci/actions/setting-up-new-github-action/
23+
# We passed pkg-mirror-host as a secret to the build but it is not sensitive data.
24+
RUN --mount=type=secret,id=pkg-mirror-host,target=/etc/pkg_mirror_host.txt \
25+
if [ -f /etc/pkg_mirror_host.txt ]; then cat /etc/pkg_mirror_host.txt >> /etc/apt/mirrorlist.txt; fi
26+
27+
RUN --mount=type=secret,id=apt-auth-conf,target=/etc/apt/auth.conf.d/apt_auth.conf \
28+
apt-get -qq update && apt-get -qq install --no-install-recommends curl git \
2229
&& curl -sL https://deb.nodesource.com/setup_24.x | bash - \
2330
&& apt-get install -y nodejs \
2431
&& node --version

0 commit comments

Comments
 (0)