添加libssl-dev安装
build / build-rust (push) Successful in 11m39s Details

This commit is contained in:
soul-walker 2024-09-23 15:50:55 +08:00
parent e735d8f6a2
commit d8cc4dc51c
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# 以 node:16-bullseye 镜像为基础添加openssl、musl-tools、Rust 工具链等工具
# 以 node:16-bullseye 镜像为基础添加openssl、libssl-dev、musl-tools、Rust 工具链等工具
# 用于构建 Rust 项目的镜像
FROM node:16-bullseye
RUN apt-get update && apt-get install -y openssl musl-tools && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN apt-get update && apt-get install -y openssl libssl-dev musl-tools && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN rustup target add x86_64-unknown-linux-musl
CMD [ "bash" ]
CMD [ "node" ]