Skip to content

Commit 6e15e57

Browse files
committed
feature(squashfs-tools): add squashfs-tools recipe
0 parents  commit 6e15e57

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile.squashfs-tools

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM alpine:latest AS build
2+
ARG SQUASHFS_TOOLS_VERSION=4.6.1
3+
WORKDIR /usr/src
4+
5+
# build dependencies
6+
RUN apk update && apk add build-base git zlib-dev zlib-static zstd-dev zstd-static lz4-dev lz4-static
7+
8+
# check out xen sources
9+
ENV SQUASHFS_TOOLS_VERSION=${SQUASHFS_TOOLS_VERSION}
10+
RUN git clone https://github.com/plougher/squashfs-tools && cd squashfs-tools && git checkout squashfs-tools-$SQUASHFS_TOOLS_VERSION
11+
WORKDIR /usr/src/squashfs-tools/squashfs-tools
12+
ENV CFLAGS="-O2 -Wall -static"
13+
ENV LDFLAGS="-static"
14+
RUN make -j`nproc` && make install INSTALL_DIR=/usr/obj/usr/bin
15+
16+
## copy final oxenstored into a scratch image
17+
FROM scratch AS final
18+
COPY --from=build /usr/obj/ /

0 commit comments

Comments
 (0)