act-docker-image-for-rust-b.../Dockerfile
soul-walker a7d5a51778 项目初始化
初步实现开始测试
2024-09-23 15:06:33 +08:00

9 lines
387 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 以 node:16-bullseye 镜像为基础添加openssl、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
ENV PATH="/root/.cargo/bin:${PATH}"
RUN rustup target add x86_64-unknown-linux-musl
CMD [ "bash" ]