fix(docker): allow nofuse builds for MacOS (#10135)
Johannes Maria Frank committed
Sep 22, 2023 at 14:40 UTC
00e26e9396c39713133bbda5286ee7caf809316e
1 file changed
+4
-1
Dockerfile
+4
-1
@@ -15,11 +15,14 @@ COPY . $SRC_DIR
15
# e.g. docker build --build-arg IPFS_PLUGINS="foo bar baz"
16
ARG IPFS_PLUGINS
17
18
+# Allow for other targets to be built, e.g.: docker build --build-arg MAKE_TARGET="nofuse"
19
+ARG MAKE_TARGET=build
20
+
21
# Build the thing.
22
# Also: fix getting HEAD commit hash via git rev-parse.
23
RUN cd $SRC_DIR \
24
&& mkdir -p .git/objects \
22
- && GOOS=$TARGETOS GOARCH=$TARGETARCH GOFLAGS=-buildvcs=false make build IPFS_PLUGINS=$IPFS_PLUGINS
25
+ && GOOS=$TARGETOS GOARCH=$TARGETARCH GOFLAGS=-buildvcs=false make ${MAKE_TARGET} IPFS_PLUGINS=$IPFS_PLUGINS
26
27
# Using Debian Buster because the version of busybox we're using is based on it
28
# and we want to make sure the libraries we're using are compatible. That's also