Skip to content

Commit 5776081

Browse files
authored
Merge pull request #21 from second-state/hydai/bump_rust_image
update rust base image
2 parents c411afe + 22d4c13 commit 5776081

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Dockerfile

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM --platform=$BUILDPLATFORM rust:1.69 AS buildbase
3+
FROM --platform=$BUILDPLATFORM rust:1.71 AS buildbase
44
WORKDIR /src
55
RUN <<EOT bash
66
set -ex
7-
apt-get update
8-
apt-get install -y \
9-
git \
10-
clang
117
rustup target add wasm32-wasi
128
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
159

1610
FROM buildbase AS build
1711
COPY Cargo.toml orders.json update_order.json .
18-
COPY src ./src
12+
COPY src ./src
1913
# Build the Wasm binary
2014
RUN cargo build --target wasm32-wasi --release
2115
# 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
2317
RUN chmod a+x order_demo_service.wasm
2418

2519
FROM scratch

0 commit comments

Comments
 (0)