• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM ghcr.io/woodard/libabigail-fedora-base as builder
2
3# docker build -f docker/Dockerfile.fedora -t ghcr.io/woodard/libabigail-fedora .
4
5WORKDIR /code
6COPY . /code
7
8RUN mkdir -p build && \
9    autoreconf -i && \
10    cd build && \
11    CXXFLAGS="-g3 -fvar-tracking-assignments \
12    -gstatement-frontiers -gvariable-location-views -grecord-gcc-switches -pipe -Wall \
13    -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wp,-D_GLIBCXX_ASSERTIONS \
14    -fstack-protector-strong -fstack-clash-protection -fcf-protection \
15    -fasynchronous-unwind-tables -O2" CFLAGS="-g3 -fvar-tracking-assignments \
16    -gstatement-frontiers -gvariable-location-views -grecord-gcc-switches -pipe -Wall \
17    -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wp,-D_GLIBCXX_ASSERTIONS \
18    -fstack-protector-strong -fstack-clash-protection -fcf-protection \
19    -fasynchronous-unwind-tables -O2" LDFLAGS="-Wl,--no-undefined" \
20    ../configure --prefix=/opt/libabigail --enable-rpm=yes && \
21    make -j4 && \
22    make install
23
24FROM fedora:latest
25COPY --from=builder /opt/libabigail /opt/libabigail
26ENV PATH=/opt/libabigail/bin:$PATH
27
28# Runtime dependencies
29RUN dnf install -y \
30    python3-koji \
31    python3-mock \
32    python3-pyxdg \
33    elfutils-libelf \
34    elfutils-libs \
35    libstdc++ \
36    lbzip2 \
37    shared-mime-info \
38    six
39