mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 16:26:28 +00:00
use nightly cargo with sparse registry
This commit is contained in:
parent
321c303a8a
commit
371a869800
@ -9,13 +9,16 @@ RUN pnpm run build
|
|||||||
|
|
||||||
|
|
||||||
# BACKEND
|
# BACKEND
|
||||||
FROM rust:1.61-alpine as backend
|
FROM rust:1.64-alpine as backend
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
RUN apk add libc-dev openssl-dev alpine-sdk
|
RUN apk add libc-dev openssl-dev alpine-sdk
|
||||||
COPY ./packages/backend/Cargo.* ./
|
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 ./
|
COPY ./packages/backend ./
|
||||||
RUN cargo build --release
|
RUN cargo +nightly build --release
|
||||||
|
|
||||||
|
|
||||||
# RUNNER
|
# RUNNER
|
||||||
|
Loading…
Reference in New Issue
Block a user