diff options
| -rw-r--r-- | Dockerfile | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -1,13 +1,13 @@ -FROM clux/muslrust:nightly-2022-08-23 AS environment +FROM clux/muslrust:nightly-2023-04-15 AS environment -ENV CHANNEL=nightly-2022-08-23 +ENV CHANNEL=nightly-2023-04-15 RUN curl "https://static.rust-lang.org/rustup/archive/${RUSTUP_VER}/${RUST_ARCH}/rustup-init" -o rustup-init \ - && chmod +x rustup-init \ - && ./rustup-init -y --default-toolchain ${CHANNEL} --profile minimal \ - && rm rustup-init \ - && ~/.cargo/bin/rustup target add x86_64-unknown-linux-musl \ - && echo "[build]\ntarget = \"x86_64-unknown-linux-musl\"" > ~/.cargo/config + && chmod +x rustup-init \ + && ./rustup-init -y --default-toolchain ${CHANNEL} --profile minimal \ + && rm rustup-init \ + && ~/.cargo/bin/rustup target add x86_64-unknown-linux-musl \ + && echo "[build]\ntarget = \"x86_64-unknown-linux-musl\"" > ~/.cargo/config RUN cargo install sccache @@ -23,6 +23,8 @@ RUN cargo install \ --rev 693a0d40aaf2dab5acea84ee8de15ec36dd12199 \ fleet-rs +RUN rustup component add rust-src --toolchain nightly-2023-04-15-x86_64-unknown-linux-gnu + FROM environment as builder WORKDIR /usr/src @@ -33,7 +35,9 @@ WORKDIR /usr/src/locus COPY Cargo.* ./ -RUN fleet build --release +COPY amenadiel/ ./amenadiel/ + +RUN fleet build --release -Zbuild-std COPY . . |