use nightly cargo with sparse registry

This commit is contained in:
cupcakearmy 2022-11-02 13:24:30 +01:00
parent 321c303a8a
commit 371a869800
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F

View File

@ -9,13 +9,16 @@ RUN pnpm run build
# BACKEND
FROM rust:1.61-alpine as backend
FROM rust:1.64-alpine as backend
WORKDIR /tmp
RUN apk add libc-dev openssl-dev alpine-sdk
COPY ./packages/backend/Cargo.* ./
RUN cargo fetch
# https://blog.rust-lang.org/2022/06/22/sparse-registry-testing.html
RUN rustup update nightly
ENV CARGO_UNSTABLE_SPARSE_REGISTRY=true
RUN cargo +nightly fetch
COPY ./packages/backend ./
RUN cargo build --release
RUN cargo +nightly build --release
# RUNNER