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>
24 lines
666 B
Plaintext
24 lines
666 B
Plaintext
FROM alpine
|
|
WORKDIR /build
|
|
RUN apk add git make gcc libc-dev musl-dev glib-static gettext eudev-dev \
|
|
linux-headers automake autoconf cmake meson ninja clang go-md2man
|
|
|
|
RUN git clone https://github.com/libfuse/libfuse && \
|
|
cd libfuse && \
|
|
mkdir build && \
|
|
cd build && \
|
|
LDFLAGS="-lpthread -s -w -static" meson --prefix /usr -D default_library=static .. && \
|
|
ninja && \
|
|
ninja install
|
|
|
|
COPY . /build/fuse-overlayfs
|
|
RUN cd fuse-overlayfs && \
|
|
./autogen.sh && \
|
|
LIBS="-ldl" LDFLAGS="-s -w -static" ./configure --prefix /usr && \
|
|
make clean && \
|
|
make && \
|
|
make install
|
|
|
|
USER nobody
|
|
ENTRYPOINT ["/usr/bin/fuse-overlayfs","-f"]
|