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        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        xfsprogs-dev \
114        xorriso \
115        zlib-dev \
116        zlib-static \
117        zstd \
118        zstd-dev && \
119    apk list | sort > /packages.txt && \
120    mkdir -p /usr/libexec/ccache-wrappers && \
121    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
122    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
123    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
124    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
125    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
126
127ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
128ENV LANG "en_US.UTF-8"
129ENV MAKE "/usr/bin/make"
130ENV NINJA "/usr/bin/ninja"
131ENV PYTHON "/usr/bin/python3"
132# As a final step configure the user (if env is defined)
133ARG USER
134ARG UID
135RUN if [ "${USER}" ]; then \
136  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
137