mirror of
https://github.com/DefectingCat/rua-list
synced 2025-07-15 16:51:31 +00:00
update mingw builder
This commit is contained in:
@ -1,5 +1,4 @@
|
|||||||
FROM rust:1.67-alpine as builder
|
FROM rust:latest as builder
|
||||||
RUN apk add --no-cache musl-dev sqlite-static openssl-dev openssl-libs-static pkgconf libpq-dev mingw-w64-gcc
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -21,11 +20,10 @@ RUN adduser \
|
|||||||
&& echo "" >> $HOME/.cargo/config \
|
&& echo "" >> $HOME/.cargo/config \
|
||||||
&& echo "[source.ustc]" >> $HOME/.cargo/config \
|
&& echo "[source.ustc]" >> $HOME/.cargo/config \
|
||||||
&& echo "registry = \"sparse+https://mirrors.ustc.edu.cn/crates.io-index/\"" >> $HOME/.cargo/config \
|
&& echo "registry = \"sparse+https://mirrors.ustc.edu.cn/crates.io-index/\"" >> $HOME/.cargo/config \
|
||||||
|
&& apt update \
|
||||||
|
&& apt install -y g++-mingw-w64-x86-64 \
|
||||||
&& rustup target add x86_64-unknown-linux-musl \
|
&& rustup target add x86_64-unknown-linux-musl \
|
||||||
&& rustup target add x86_64-pc-windows-gnu \
|
&& rustup target add x86_64-pc-windows-gnu \
|
||||||
&& rustup toolchain install stable-x86_64-pc-windows-gnu \
|
&& rustup toolchain install stable-x86_64-pc-windows-gnu
|
||||||
&& update-ca-certificates
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/bin/bash" ]
|
ENTRYPOINT [ "/bin/bash" ]
|
Reference in New Issue
Block a user