fuse-overlayfs/Containerfile.alpine
Giuseppe Scrivano a65b310508
build: rename Dockerfile to Containerfile
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>
2020-10-06 19:22:49 +02:00

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"]