Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile.squashfs-tools
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ WORKDIR /usr/src
# build dependencies
RUN apk update && apk add build-base git zlib-dev zlib-static zstd-dev zstd-static lz4-dev lz4-static

# check out xen sources
# check out squashfs-tools sources
ENV SQUASHFS_TOOLS_VERSION=${SQUASHFS_TOOLS_VERSION}
RUN git clone https://github.com/plougher/squashfs-tools && cd squashfs-tools && git checkout squashfs-tools-$SQUASHFS_TOOLS_VERSION
WORKDIR /usr/src/squashfs-tools/squashfs-tools
ENV CFLAGS="-O2 -Wall -static"
ENV LDFLAGS="-static"
RUN make -j`nproc` && make install INSTALL_DIR=/usr/obj/usr/bin

## copy final oxenstored into a scratch image
## copy final squashfs-tools into a scratch image
FROM scratch AS final
COPY --from=build /usr/obj/ /