Skip to content

Commit

Permalink
Merge pull request #27 from second-state/L-jasmine-patch-1
Browse files Browse the repository at this point in the history
fix Docker build
  • Loading branch information
hydai authored Aug 22, 2024
2 parents 2289c95 + d60bac6 commit f5b1157
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
url = "2.3"

mysql_async = { version = "0.34", default-features=false, features = [ "default-rustls" ], git="https://github.com/blackbeam/mysql_async.git" }
mysql_async = { version = "0.34", default-features=false, features = [ "default-rustls" ], git="https://github.com/blackbeam/mysql_async.git", rev="08b7b70" }
zstd-sys = "=2.0.9"
hyper = { version = "0.14", features = ["full"] }
tokio = { version = "1", features = ["io-util", "fs", "net", "time", "rt", "macros"] }
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

FROM --platform=$BUILDPLATFORM rust:1.71 AS buildbase
WORKDIR /src

RUN apt-get update && apt-get install -y --no-install-recommends \
clang \
&& rm -rf /var/lib/apt/lists/*

RUN <<EOT bash
set -ex
rustup target add wasm32-wasi
Expand All @@ -10,6 +15,7 @@ EOT
FROM buildbase AS build
COPY Cargo.toml orders.json update_order.json ./
COPY src ./src
COPY .cargo ./.cargo
# Build the Wasm binary
RUN cargo build --target wasm32-wasi --release
# This line builds the AOT Wasm binary
Expand Down

0 comments on commit f5b1157

Please sign in to comment.