1# THIS FILE WAS AUTO-GENERATED
2#
3#  $ lcitool dockerfile --layers all alpine-318 qemu
4#
5# https://gitlab.com/libvirt/libvirt-ci
6
7FROM docker.io/library/alpine:3.18
8
9RUN apk update && \
10    apk upgrade && \
11    apk add \
12        alsa-lib-dev \
13        attr-dev \
14        bash \
15        bc \
16        bison \
17        bzip2 \
18        bzip2-dev \
19        ca-certificates \
20        capstone-dev \
21        ccache \
22        ceph-dev \
23        clang \
24        cmocka-dev \
25        ctags \
26        curl-dev \
27        cyrus-sasl-dev \
28        dbus \
29        diffutils \
30        dtc-dev \
31        eudev-dev \
32        findutils \
33        flex \
34        fuse3-dev \
35        g++ \
36        gcc \
37        gcovr \
38        gettext \
39        git \
40        glib-dev \
41        glib-static \
42        gnutls-dev \
43        gtk+3.0-dev \
44        json-c-dev \
45        libaio-dev \
46        libbpf-dev \
47        libcap-ng-dev \
48        libdrm-dev \
49        libepoxy-dev \
50        libffi-dev \
51        libgcrypt-dev \
52        libjpeg-turbo-dev \
53        libnfs-dev \
54        libpng-dev \
55        libseccomp-dev \
56        libselinux-dev \
57        libslirp-dev \
58        libssh-dev \
59        libtasn1-dev \
60        liburing-dev \
61        libusb-dev \
62        linux-pam-dev \
63        llvm \
64        lttng-ust-dev \
65        lzo-dev \
66        make \
67        mesa-dev \
68        meson \
69        mtools \
70        multipath-tools \
71        musl-dev \
72        ncurses-dev \
73        ndctl-dev \
74        net-tools \
75        nettle-dev \
76        nmap-ncat \
77        numactl-dev \
78        openssh-client \
79        pcre-dev \
80        pixman-dev \
81        pkgconf \
82        pulseaudio-dev \
83        py3-numpy \
84        py3-pillow \
85        py3-pip \
86        py3-sphinx \
87        py3-sphinx_rtd_theme \
88        py3-yaml \
89        python3 \
90        rpm2cpio \
91        samurai \
92        sdl2-dev \
93        sdl2_image-dev \
94        sed \
95        snappy-dev \
96        sndio-dev \
97        socat \
98        sparse \
99        spice-dev \
100        spice-protocol \
101        tar \
102        tesseract-ocr \
103        usbredir-dev \
104        util-linux \
105        vde2-dev \
106        virglrenderer-dev \
107        vte3-dev \
108        which \
109        xen-dev \
110        xfsprogs-dev \
111        xorriso \
112        zlib-dev \
113        zlib-static \
114        zstd \
115        zstd-dev && \
116    apk list | sort > /packages.txt && \
117    mkdir -p /usr/libexec/ccache-wrappers && \
118    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
119    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
120    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
121    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
122    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
123
124ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
125ENV LANG "en_US.UTF-8"
126ENV MAKE "/usr/bin/make"
127ENV NINJA "/usr/bin/ninja"
128ENV PYTHON "/usr/bin/python3"
129# As a final step configure the user (if env is defined)
130ARG USER
131ARG UID
132RUN if [ "${USER}" ]; then \
133  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
134