Skip to content

Commit f5b1157

Browse files
authored
Merge pull request #27 from second-state/L-jasmine-patch-1
fix Docker build
2 parents 2289c95 + d60bac6 commit f5b1157

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ serde_json = "1.0"
1414
serde = { version = "1.0", features = ["derive"] }
1515
url = "2.3"
1616

17-
mysql_async = { version = "0.34", default-features=false, features = [ "default-rustls" ], git="https://github.com/blackbeam/mysql_async.git" }
17+
mysql_async = { version = "0.34", default-features=false, features = [ "default-rustls" ], git="https://github.com/blackbeam/mysql_async.git", rev="08b7b70" }
1818
zstd-sys = "=2.0.9"
1919
hyper = { version = "0.14", features = ["full"] }
2020
tokio = { version = "1", features = ["io-util", "fs", "net", "time", "rt", "macros"] }

Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
FROM --platform=$BUILDPLATFORM rust:1.71 AS buildbase
44
WORKDIR /src
5+
6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
clang \
8+
&& rm -rf /var/lib/apt/lists/*
9+
510
RUN <<EOT bash
611
set -ex
712
rustup target add wasm32-wasi
@@ -10,6 +15,7 @@ EOT
1015
FROM buildbase AS build
1116
COPY Cargo.toml orders.json update_order.json ./
1217
COPY src ./src
18+
COPY .cargo ./.cargo
1319
# Build the Wasm binary
1420
RUN cargo build --target wasm32-wasi --release
1521
# This line builds the AOT Wasm binary

0 commit comments

Comments
 (0)