浏览代码

Fixing some missing commands in Dockerfile

gary 2 月之前
父节点
当前提交
74478478f8
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 2 0
      Cargo.toml
  2. 2 1
      Dockerfile

+ 2 - 0
Cargo.toml

@@ -1,5 +1,7 @@
 [workspace]
 
+resolver = "2"
+
 members = [
     "examples",
 	"shared",

+ 2 - 1
Dockerfile

@@ -17,7 +17,8 @@ COPY . .
 
 RUN cargo build --all --locked && \
     cargo install wasm-pack --locked && \
-    wasm-pack build engine
+    wasm-pack build engine && \
+    wasm-pack build examples
 
 RUN bash -c "source $NVM_DIR/nvm.sh && cd examples/webapp && npm install && npm run build"