Dockerfile 1.1 KB
Newer Older
1
FROM ubuntu:22.04
fuyanbin's avatar
fuyanbin committed
2
3
4
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --force-yes -y \
    bc \
    jq \
5
    python3 \
fuyanbin's avatar
fuyanbin committed
6
7
8
9
10
11
12
13
14
15
16
17
    openssl \
    bzip2 \
    mount \
    udisks2 \
    coreutils \
    unzip \
    zip \
    git \
    curl \
    qemu-utils \
    ca-certificates \
    zstd \
18
19
    file \
    abootimg \
20
21
22
23
24
25
    libusb-1.0-0 \
    libfdt-dev \
    libfdt1 \
    libprotobuf23 \
    libprotobuf-dev \
    openssh-client \
fuyanbin's avatar
fuyanbin committed
26
27
28
29
30
31
    && 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
32
COPY tools/amlogic_tool/* /usr/bin
fuyanbin's avatar
fuyanbin committed
33
COPY tools/allwinner/imgrepacker /usr/bin
34
COPY tools/android-tools/* /usr/bin
fuyanbin's avatar
fuyanbin committed
35
COPY gitlab-runner/entrypoint /entrypoint
fuyanbin's avatar
fuyanbin committed
36
37
#RUN apt install --no-install-recommends -y wine mono-complete && apt-get clean all
RUN dpkg --add-architecture i386 && apt update && DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y wine32 && apt-get clean all
38
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
39
40
41

WORKDIR /
ENTRYPOINT ["/entrypoint"]