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        gtk-vnc-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        libxdp-dev \
63        linux-pam-dev \
64        llvm \
65        lttng-ust-dev \
66        lzo-dev \
67        make \
68        mesa-dev \
69        meson \
70        mtools \
71        multipath-tools \
72        musl-dev \
73        ncurses-dev \
74        ndctl-dev \
75        net-tools \
76        nettle-dev \
77        nmap-ncat \
78        numactl-dev \
79        openssh-client \
80        pcre-dev \
81        pipewire-dev \
82        pixman-dev \
83        pkgconf \
84        pulseaudio-dev \
85        py3-numpy \
86        py3-pillow \
87        py3-pip \
88        py3-sphinx \
89        py3-sphinx_rtd_theme \
90        py3-yaml \
91        python3 \
92        rpm2cpio \
93        samurai \
94        sdl2-dev \
95        sdl2_image-dev \
96        sed \
97        snappy-dev \
98        sndio-dev \
99        socat \
100        sparse \
101        spice-dev \
102        spice-protocol \
103        swtpm \
104        tar \
105        tesseract-ocr \
106        usbredir-dev \
107        util-linux \
108        vde2-dev \
109        virglrenderer-dev \
110        vte3-dev \
111        which \
112        xen-dev \
113        xorriso \
114        zlib-dev \
115        zlib-static \
116        zstd \
117        zstd-dev && \
118    rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
119    apk list --installed | sort > /packages.txt && \
120    mkdir -p /usr/libexec/ccache-wrappers && \
121    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
122    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
123    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
124
125ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
126ENV LANG "en_US.UTF-8"
127ENV MAKE "/usr/bin/make"
128ENV NINJA "/usr/bin/ninja"
129ENV PYTHON "/usr/bin/python3"
130# As a final step configure the user (if env is defined)
131ARG USER
132ARG UID
133RUN if [ "${USER}" ]; then \
134  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
135