use rust-init with nightly

This commit is contained in:
TonyChyi 2022-06-29 08:51:14 +08:00
parent f67d618f67
commit 1f60fcfcb0

View File

@ -3,7 +3,7 @@ FROM alpine as build
ENV RUSTFLAGS="-C target-feature=-crt-static" ENV RUSTFLAGS="-C target-feature=-crt-static"
WORKDIR /usr/src/saysthbot WORKDIR /usr/src/saysthbot
COPY . . 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 FROM alpine