summaryrefslogtreecommitdiff
path: root/.gitlab-ci/fedora.Dockerfile
blob: 26c4ab9dbb49536069240bc265caee0f92a2b3f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM fedora:36

RUN dnf update -y
RUN dnf -y install \
    meson \
    vala \
    libvala-devel \
    gtk4-devel \
    ninja-build \
    pkgconf \
    clang \
    gobject-introspection-devel \
    vulkan-headers \
    python3-pip \
    wayland-devel \
    wayland-protocols-devel \
    sysprof-devel

RUN dnf clean all

# Enable sudo for wheel users
RUN sed -i -e 's/# %wheel/%wheel/' -e '0,/%wheel/{s/%wheel/# %wheel/}' /etc/sudoers

ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID}
RUN useradd -u $HOST_USER_ID -G wheel -ms /bin/bash user

USER user
WORKDIR /home/user

ENV PATH="/home/user/.local/bin:${PATH}"
RUN pip3 install --user --upgrade gi-docgen

ENV LANG C.UTF-8