1# THIS FILE WAS AUTO-GENERATED
2#
3#  $ lcitool dockerfile --layers all alpine-319 qemu
4#
5# https://gitlab.com/libvirt/libvirt-ci
6
7FROM docker.io/library/alpine:3.19
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        gcc \
36        gcovr \
37        gettext \
38        git \
39        glib-dev \
40        glib-static \
41        gnutls-dev \
42        gtk+3.0-dev \
43        json-c-dev \
44        libaio-dev \
45        libbpf-dev \
46        libcap-ng-dev \
47        libdrm-dev \
48        libepoxy-dev \
49        libffi-dev \
50        libgcrypt-dev \
51        libjpeg-turbo-dev \
52        libnfs-dev \
53        libpng-dev \
54        libseccomp-dev \
55        libselinux-dev \
56        libslirp-dev \
57        libssh-dev \
58        libtasn1-dev \
59        liburing-dev \
60        libusb-dev \
61        libxdp-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        pipewire-dev \
81        pixman-dev \
82        pkgconf \
83        pulseaudio-dev \
84        py3-numpy \
85        py3-pillow \
86        py3-pip \
87        py3-sphinx \
88        py3-sphinx_rtd_theme \
89        py3-yaml \
90        python3 \
91        rpm2cpio \
92        samurai \
93        sdl2-dev \
94        sdl2_image-dev \
95        sed \
96        snappy-dev \
97        sndio-dev \
98        socat \
99        sparse \
100        spice-dev \
101        spice-protocol \
102        swtpm \
103        tar \
104        tesseract-ocr \
105        usbredir-dev \
106        util-linux \
107        vde2-dev \
108        virglrenderer-dev \
109        vte3-dev \
110        which \
111        xen-dev \
112        xorriso \
113        zlib-dev \
114        zlib-static \
115        zstd \
116        zstd-dev && \
117    rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
118    apk list --installed | sort > /packages.txt && \
119    mkdir -p /usr/libexec/ccache-wrappers && \
120    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
121    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
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