| 1 |
FROM registry.fedoraproject.org/fedora:36 |
| 2 |
MAINTAINER [email protected] |
| 3 |
|
| 4 |
WORKDIR /srv/popt |
| 5 |
|
| 6 |
RUN echo -e "deltarpm=0\ninstall_weak_deps=0\ntsflags=nodocs" >> /etc/dnf/dnf.conf |
| 7 |
RUN rm -f /etc/yum.repos.d/*modular.repo |
| 8 |
RUN dnf -y update |
| 9 |
RUN dnf -y install \ |
| 10 |
autoconf \ |
| 11 |
automake \ |
| 12 |
libtool \ |
| 13 |
gettext-devel \ |
| 14 |
make \ |
| 15 |
gcc \ |
| 16 |
binutils \ |
| 17 |
&& dnf clean all |
| 18 |
|
| 19 |
COPY . . |
| 20 |
|
| 21 |
RUN ./autogen.sh |
| 22 |
RUN ./configure --enable-werror CFLAGS="-Wall -Wdeclaration-after-statement -Wextra -Wmissing-format-attribute -Wmissing-noreturn -Wno-gnu-alignof-expression -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings" |
| 23 |
RUN make |
| 24 |
|
| 25 |
CMD make distcheck DISTCHECK_CONFIGURE_FLAGS=--enable-werror |