We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0 parents commit 6e15e57Copy full SHA for 6e15e57
Dockerfile.squashfs-tools
@@ -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