| 1 |
FROM fedora:41 |
| 2 |
|
| 3 |
RUN dnf -y update \ |
| 4 |
&& dnf -y install \ |
| 5 |
clang \ |
| 6 |
clang-analyzer \ |
| 7 |
gcc \ |
| 8 |
gcovr \ |
| 9 |
gi-docgen \ |
| 10 |
meson \ |
| 11 |
json-glib-devel \ |
| 12 |
libsoup3-devel \ |
| 13 |
gnome-online-accounts-devel \ |
| 14 |
gobject-introspection-devel \ |
| 15 |
git \ |
| 16 |
&& dnf clean all |
| 17 |
|
| 18 |
# Install recent uhttpmock |
| 19 |
RUN git clone https://gitlab.freedesktop.org/pwithnall/uhttpmock/ && cd uhttpmock && meson setup build -Dprefix=/usr -Dintrospection=false -Dvapi=disabled -Dgtk_doc=false && ninja -C build && ninja -C build install && cd .. && rm -rf uhttpmock |
| 20 |
|
| 21 |
|
| 22 |
# Enable sudo for wheel users |
| 23 |
RUN sed -i -e 's/# %wheel/%wheel/' -e '0,/%wheel/{s/%wheel/# %wheel/}' /etc/sudoers |
| 24 |
|
| 25 |
ARG HOST_USER_ID=5555 |
| 26 |
ENV HOST_USER_ID ${HOST_USER_ID} |
| 27 |
RUN useradd -u $HOST_USER_ID -G wheel -ms /bin/bash user |
| 28 |
|
| 29 |
USER user |
| 30 |
WORKDIR /home/user |
| 31 |
|
| 32 |
ENV LANG C.UTF-8 |