Dockerfile 927 Bytes
Newer Older
1
FROM ubuntu:22.04
fuyanbin's avatar
fuyanbin committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 \
30
31
32
33
    file \
    abootimg \
    cpio \
    simg2img \
fuyanbin's avatar
fuyanbin committed
34
35
36
37
38
39
    && apt-get clean all

# custom tools
COPY tools/upload.sh /usr/bin
COPY tools/upload /usr/bin
COPY tools/obsutil/obsutil /usr/bin
fuyanbin's avatar
fuyanbin committed
40
COPY tools/rockchip_tool/* /usr/bin
fuyanbin's avatar
fuyanbin committed
41
COPY gitlab-runner/entrypoint /entrypoint
42
RUN --mount=type=bind,target=/tmp/mnt,source=./gitlab-runner bash -c 'dpkg -i /tmp/mnt/gitlab-runner_amd64.deb'
fuyanbin's avatar
fuyanbin committed
43
44
45

WORKDIR /
ENTRYPOINT ["/entrypoint"]