Ai
4 Star 10 Fork 0

Gitee 极速下载/RustPython

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/RustPython/RustPython
克隆/下载
Dockerfile.wasm 667 Bytes
一键复制 编辑 原始数据 按行查看 历史
Noah 提交于 2020-03-13 02:40 +08:00 . Update dockerfiles
FROM rust:slim AS rust
WORKDIR /rustpython
USER root
ENV USER root
RUN apt-get update && apt-get install curl libssl-dev pkg-config -y && \
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
COPY . .
RUN cd wasm/lib/ && wasm-pack build --release
FROM node:alpine AS node
WORKDIR /rustpython-demo
COPY --from=rust /rustpython/wasm/lib/pkg rustpython_wasm
COPY wasm/demo .
RUN npm install && npm run dist -- --env.noWasmPack --env.rustpythonPkg=rustpython_wasm
FROM nginx:alpine
COPY --from=node /rustpython-demo/dist /usr/share/nginx/html
# Add the WASM mime type
RUN echo "types { application/wasm wasm; }" >>/etc/nginx/mime.types
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/mirrors/RustPython.git
git@gitee.com:mirrors/RustPython.git
mirrors
RustPython
RustPython
main

搜索帮助