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