update workflow

This commit is contained in:
Sense T
2024-01-08 13:03:12 +08:00
parent cce1c1f059
commit dde441bf9f
2 changed files with 40 additions and 1 deletions

View File

@@ -3,7 +3,9 @@ FROM alpine as build
ENV RUSTFLAGS="-C target-feature=-crt-static"
WORKDIR /usr/src/saysthbot
COPY . .
RUN apk add --no-cache rustup openssl-dev build-base && rustup-init -y --default-toolchain nightly && source ${HOME}/.cargo/env && cargo build --release
RUN apk add --no-cache rustup openssl-dev build-base && \
rustup-init -y --default-toolchain nightly && \
source ${HOME}/.cargo/env && cargo build --release
FROM alpine