mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 09:55:57 -04:00

since these files need the -v option that is not present with Docker, rename the files to Containerfile to avoid confusion. more info: https://twitter.com/cpuguy83/status/1313523894536429568 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
22 lines
661 B
Plaintext
22 lines
661 B
Plaintext
FROM registry.fedoraproject.org/fedora:latest
|
|
WORKDIR /build
|
|
RUN dnf update -y && \
|
|
dnf install -y git make automake autoconf gcc glibc-static meson ninja-build clang
|
|
|
|
RUN git clone https://github.com/libfuse/libfuse && \
|
|
cd libfuse && \
|
|
mkdir build && \
|
|
cd build && \
|
|
LDFLAGS="-lpthread" meson --prefix /usr -D default_library=static .. && \
|
|
ninja && \
|
|
ninja install
|
|
|
|
RUN git clone https://github.com/containers/fuse-overlayfs && \
|
|
cd fuse-overlayfs && \
|
|
sh autogen.sh && \
|
|
LIBS="-ldl" LDFLAGS="-static" ./configure --prefix /usr && \
|
|
make && \
|
|
make install
|
|
USER 1000
|
|
ENTRYPOINT ["/usr/bin/fuse-overlayfs","-f"]
|