1 Star 0 Fork 0

Hyperledger/identus-edge-agent-sdk-ts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dockerfile 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
FROM node:lts-bookworm
# Install dependencies for Rust, wasm-pack, and glibc development headers
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
build-essential \
ca-certificates \
git \
pkg-config \
libssl-dev \
libc6-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Rust using rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
# Set environment variables for Rust
ENV PATH="/root/.cargo/bin:${PATH}"
# Install wasm-pack using Cargo
RUN cargo install wasm-pack
ENV WASM_BINDGEN_PATH="/root/.cargo/bin/wasm-bindgen"
# Set the working directory inside the container
WORKDIR /app
VOLUME /app/build
# Copy package.json and package-lock.json
# to leverage Docker cache
COPY ./*.sh ./
COPY package*.json ./
COPY patches ./patches
COPY externals ./externals
COPY *.js ./
COPY *.mjs ./
COPY *.json ./
COPY src ./src
RUN git init
# Install entrypoint script
COPY ./.docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hyperledger/identus-edge-agent-sdk-ts.git
[email protected]:hyperledger/identus-edge-agent-sdk-ts.git
hyperledger
identus-edge-agent-sdk-ts
identus-edge-agent-sdk-ts
main

搜索帮助