compile static musl for cdylib support

This commit is contained in:
Sebastian Hugentobler 2023-03-09 08:50:55 +01:00
parent f8c5b10ea9
commit 939201fedb
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
2 changed files with 7 additions and 2 deletions

2
Cargo.lock generated
View File

@ -1537,7 +1537,7 @@ checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd"
[[package]] [[package]]
name = "woweb" name = "woweb"
version = "0.1.0" version = "0.2.0"
dependencies = [ dependencies = [
"axum", "axum",
"axum-extra", "axum-extra",

View File

@ -1,7 +1,12 @@
FROM docker.io/rust:1.67-alpine3.17 AS builder FROM docker.io/rust:1.67-alpine3.17 AS builder
ENV RUSTFLAGS="-C target-feature=-crt-static"
RUN apk add --no-cache \ RUN apk add --no-cache \
musl-dev musl-dev \
wasm-pack
RUN rustup target add wasm32-unknown-unknown
ADD . /src ADD . /src
WORKDIR /src WORKDIR /src