diff --git a/tools/dockers/docker-examples/basic-miner-busybox/Dockerfile b/tools/dockers/docker-examples/basic-miner-busybox/Dockerfile index 03a07b3ad..e740723a8 100644 --- a/tools/dockers/docker-examples/basic-miner-busybox/Dockerfile +++ b/tools/dockers/docker-examples/basic-miner-busybox/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.13.4-buster +FROM golang:1.13-buster MAINTAINER ldoublewood ENV SRC_DIR /lotus @@ -44,10 +44,12 @@ RUN cd $SRC_DIR \ COPY . $SRC_DIR +ARG MAKE_TARGET=all + # Build the thing. RUN cd $SRC_DIR \ && . $HOME/.cargo/env \ - && make + && make $MAKE_TARGET # Now comes the actual target image, which aims to be as small as possible. FROM busybox:1-glibc @@ -56,7 +58,7 @@ MAINTAINER ldoublewood # Get the executable binary and TLS CAs from the build container. ENV SRC_DIR /lotus COPY --from=0 $SRC_DIR/lotus /usr/local/bin/lotus -COPY --from=0 $SRC_DIR/lotus-storage-miner /usr/local/bin/lotus-storage-miner +COPY --from=0 $SRC_DIR/lotus-* /usr/local/bin/ COPY --from=0 /tmp/su-exec/su-exec /sbin/su-exec COPY --from=0 /tmp/tini /sbin/tini COPY --from=0 /etc/ssl/certs /etc/ssl/certs