FROM ubuntu:22.04 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --force-yes -y \ bc \ iputils-ping \ iproute2 \ jq \ squashfs-tools \ genisoimage \ syslinux \ isomd5sum \ openssl \ bzip2 \ rsync \ mount \ udisks2 \ coreutils \ p7zip-full \ wget \ unzip \ zip \ git \ curl \ lsb-release \ qemu-utils \ ca-certificates \ gnupg \ openssh-client \ zstd \ sudo \ file \ abootimg \ cpio \ simg2img \ && apt-get clean all # custom tools COPY tools/upload.sh /usr/bin COPY tools/upload /usr/bin COPY tools/obsutil/obsutil /usr/bin COPY tools/rockchip_tool/* /usr/bin COPY gitlab-runner/entrypoint /entrypoint RUN --mount=type=bind,target=/tmp/mnt,source=./gitlab-runner bash -c 'dpkg -i /tmp/mnt/gitlab-runner_amd64.deb' WORKDIR / ENTRYPOINT ["/entrypoint"]