File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
2
3
- FROM --platform=$BUILDPLATFORM rust:1.69 AS buildbase
3
+ FROM --platform=$BUILDPLATFORM rust:1.71 AS buildbase
4
4
WORKDIR /src
5
5
RUN <<EOT bash
6
6
set -ex
7
- apt-get update
8
- apt-get install -y \
9
- git \
10
- clang
11
7
rustup target add wasm32-wasi
12
8
EOT
13
- # This line installs WasmEdge including the AOT compiler
14
- RUN curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash
15
9
16
10
FROM buildbase AS build
17
11
COPY Cargo.toml orders.json update_order.json .
18
- COPY src ./src
12
+ COPY src ./src
19
13
# Build the Wasm binary
20
14
RUN cargo build --target wasm32-wasi --release
21
15
# This line builds the AOT Wasm binary
22
- RUN /root/.wasmedge/bin/wasmedgec target/wasm32-wasi/release/order_demo_service.wasm order_demo_service.wasm
16
+ RUN cp target/wasm32-wasi/release/order_demo_service.wasm order_demo_service.wasm
23
17
RUN chmod a+x order_demo_service.wasm
24
18
25
19
FROM scratch
You can’t perform that action at this time.
0 commit comments