update Dockerfile
This commit is contained in:
parent
479ad3acd4
commit
e38f1669dc
10
Dockerfile
10
Dockerfile
@ -8,11 +8,17 @@ FROM docker.io/library/debian:latest AS builder
|
|||||||
|
|
||||||
# First - build
|
# First - build
|
||||||
|
|
||||||
|
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources
|
||||||
RUN apt update && apt install -y curl libssl-dev perl git gcc make
|
RUN apt update && apt install -y curl libssl-dev perl git gcc make
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash
|
RUN curl -fsSL https://deb.nodesource.com/setup_23.x | bash
|
||||||
RUN apt update && apt install -y nodejs
|
RUN apt update && apt install -y nodejs
|
||||||
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal
|
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal
|
||||||
|
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
|
RUN rm -rf /etc/localtime
|
||||||
|
RUN ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
|
|
||||||
WORKDIR /ew/
|
WORKDIR /ew/
|
||||||
|
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
@ -31,7 +37,7 @@ RUN npm i && npm run build
|
|||||||
|
|
||||||
WORKDIR /ew/
|
WORKDIR /ew/
|
||||||
|
|
||||||
RUN . "$HOME/.cargo/env" && cargo build --release --jobs=16
|
RUN . "$HOME/.cargo/env" && cargo build --release
|
||||||
|
|
||||||
## Second - sort stuff idk
|
## Second - sort stuff idk
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user