|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
|
|
-# Use: docker build . -t darkfi:debian -f ./contrib/docker/Dockerfile.debian
|
|
|
|
|
|
|
+# Use: docker build . --pull --network=host -t darkfi:debian -f ./contrib/docker/Dockerfile.debian
|
|
|
# optionally with: --build-arg BUILD_OS_VER=slim-buster --build-arg RUN_OS_VER=buster-slim --build-arg RUST_VER=1.65
|
|
# optionally with: --build-arg BUILD_OS_VER=slim-buster --build-arg RUN_OS_VER=buster-slim --build-arg RUST_VER=1.65
|
|
|
# rust nightly with: BUILD_OS_VER=bullseye-slim RUN_OS_VER=bullseye-slim RUST_VER=nightly REPOSITORY=rustlang/rust
|
|
# rust nightly with: BUILD_OS_VER=bullseye-slim RUN_OS_VER=bullseye-slim RUST_VER=nightly REPOSITORY=rustlang/rust
|
|
|
|
|
|
|
@@ -20,6 +20,8 @@ COPY . /opt/darkfi
|
|
|
|
|
|
|
|
WORKDIR /opt/darkfi
|
|
WORKDIR /opt/darkfi
|
|
|
|
|
|
|
|
|
|
+RUN rustup target add wasm32-unknown-unknown
|
|
|
|
|
+
|
|
|
RUN make clean
|
|
RUN make clean
|
|
|
|
|
|
|
|
RUN rm -rf ./target/*
|
|
RUN rm -rf ./target/*
|
|
@@ -30,10 +32,10 @@ RUN bash -c 'make -j test && make -j all'
|
|
|
FROM debian:${RUN_OS_VER}
|
|
FROM debian:${RUN_OS_VER}
|
|
|
|
|
|
|
|
RUN apt-get -y update && apt-get install -y openssl fonts-lato \
|
|
RUN apt-get -y update && apt-get install -y openssl fonts-lato \
|
|
|
- && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
WORKDIR /opt/darkfi
|
|
WORKDIR /opt/darkfi
|
|
|
|
|
|
|
|
-COPY --from=builder /opt/darkfi/drk /opt/darkfi/darkfid /opt/darkfi/tau \
|
|
|
|
|
- /opt/darkfi/taud /opt/darkfi/ircd /opt/darkfi/dnetview /opt/darkfi/faucetd \
|
|
|
|
|
- /opt/darkfi/darkwikid /opt/darkfi/darkwiki /opt/darkfi/zkas /opt/darkfi/vanityaddr ./
|
|
|
|
|
|
|
+COPY --from=builder /opt/darkfi/drk /opt/darkfi/darkfid \
|
|
|
|
|
+ /opt/darkfi/ircd /opt/darkfi/dnetview /opt/darkfi/faucetd \
|
|
|
|
|
+ /opt/darkfi/zkas /opt/darkfi/vanityaddr ./
|