Bump up rust version to 1.65 in Dockerfiles and fix typos, builds passed

This commit is contained in:
spital
2022-11-11 00:06:00 +01:00
committed by parazyd
parent 9f66dc36ae
commit abb1262f38
5 changed files with 45 additions and 38 deletions

View File

@@ -1,8 +1,8 @@
# Use: docker build . --network=host --pull -t darkfi:ubuntu -f ./contrib/docker/Dockerfile.ubuntu
# optionally with: --build-arg BUILD_OS_VER=20.04 --build-arg RUST_VER=1.64
# optionally with: --build-arg BUILD_OS_VER=20.04 --build-arg RUST_VER=1.65
ARG RUST_VER=1.65 # stable nightly beta 1.64
ARG RUST_VER=1.65 # stable nightly beta
ARG BUILD_OS_VER=22.04 # 20.04
ARG RUN_OS_VER=${BUILD_OS_VER}
ARG REPOSITORY=ubuntu
@@ -22,21 +22,20 @@ ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo search whatever # creates .cargo cache
FROM rust_builder
RUN mkdir /opt/darkfi
COPY . /opt/darkfi
# 2. stage
FROM rust_builder as builder
WORKDIR /opt/darkfi
COPY . /opt/darkfi
RUN make clean
RUN rm -rf ./target/*
RUN bash -c 'make -j test && make -j all'
# 2. stage
# 3. stage
FROM ${REPOSITORY}:${RUN_OS_VER}
RUN apt-get -y update && apt-get install -y openssl fonts-lato \
@@ -46,5 +45,5 @@ 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/darkotc /opt/darkfi/darkwikid \
/opt/darkfi/darkwiki /opt/darkfi/zkas ./
/opt/darkfi/darkwiki /opt/darkfi/zkas /opt/darkfi/dao /opt/darkfi/daod ./