From 1f60fcfcb013718e39e471de1a6050467f9949e9 Mon Sep 17 00:00:00 2001 From: TonyChyi Date: Wed, 29 Jun 2022 08:51:14 +0800 Subject: [PATCH] use rust-init with nightly --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c4d5373..0954e81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM alpine as build ENV RUSTFLAGS="-C target-feature=-crt-static" WORKDIR /usr/src/saysthbot COPY . . -RUN apk add --no-cache rustup openssl-dev && rustup default nightly && cargo build --release +RUN apk add --no-cache rustup openssl-dev && rustup-init -y --default-toolchain nightly && cargo build --release FROM alpine