Files
openssh-deb/docker/Dockerfile.deps
boypt 4ef6b27bec refactor: download sid debhelper .debs on host via pullsrc.sh instead of bundling in git
- pullsrc.sh fetches debhelper/libdebhelper-perl 14.3 (pinned DEBHELPER_SIDPKG
  in version.env, empty = auto-detect latest sid) into gitignored builddep/
- install_deps.sh installs builddep/*.deb and adds compat sed hacks for sid
  debhelper >= 13.27: rewrite Dh_Lib.pm bucket 'cp --update=none' to '-n' on
  coreutils < 9.3 (buster/bionic/bookworm), downgrade use v5.28 pragmas in
  Dh_Lib.pm/dh_assistant for perl < 5.28, handle ${tmpdir} brace form in the
  non-merged-usr hack; drop the dead sid-apt-source _DEBIAN_DEBHELPER
- Dockerfile.deps: BuildKit bind mounts instead of COPY (nothing in layers)
- CI deps-image build runs ./pullsrc.sh debhelper first to populate context
2026-09-01 15:41:24 +08:00

12 lines
562 B
Docker
Executable File

# Dep image
# docker build --build-arg BASE_IMAGE=ubuntu:noble -f docker/Dockerfile.deps -t xxx .
# Requires `./pullsrc.sh debhelper` on the host first (populates builddep/).
# BuildKit bind mounts keep install_deps.sh and the .debs out of image layers.
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
# install_deps.sh handles EOL archive switching (buster unconditional, bullseye probed) and APT_MIRROR
RUN --mount=type=bind,source=install_deps.sh,target=/tmp/install_deps.sh \
--mount=type=bind,source=builddep,target=/tmp/builddep \
cd /tmp && bash ./install_deps.sh