summaryrefslogtreecommitdiff
path: root/fswrap/master/Dockerfile
blob: b28e5e13a181ee689447ea1ab367c25b9efa1e3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine
ARG PREFIX=/opt/spm/fswrap-master
RUN apk update && apk add \
	git \
	cmake \
	make \
	gcc \
	musl-dev
RUN git clone --depth 1 https://gitea.privatedns.org/xavi/fswrap
WORKDIR /fswrap
RUN LDFLAGS="-static -Wl,--gc-sections" \
    CFLAGS="-ffunction-sections -fdata-sections" \
    cmake -B build \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=$PREFIX
RUN cmake --build build/ --parallel $(nproc --all) -v
RUN cmake --install build/
WORKDIR $PREFIX/bin
RUN strip fswrap