FROM ubuntu:22.04 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --force-yes -y \ bc \ jq \ python3 \ openssl \ bzip2 \ mount \ udisks2 \ coreutils \ unzip \ zip \ git \ curl \ qemu-utils \ ca-certificates \ zstd \ file \ abootimg \ libusb-1.0-0 \ libfdt-dev \ libfdt1 \ libprotobuf23 \ libprotobuf-dev \ libc6-i386 \ openssh-client \ && 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/amlogic_tool/* /usr/bin COPY tools/allwinner/* /usr/bin COPY tools/android-tools/* /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"]