forked from fzyzcjy/flutter_rust_bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 647 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# tentative experiment. create an issue if you want flutter_rust_bridge_codegen bundled in docker!
FROM rust:1.70.0 as builder
WORKDIR /usr/src/flutter_rust_bridge_codegen
COPY . .
RUN cargo install --path frb_codegen && \
ls -al /usr/local/cargo/bin/
FROM dart:3.1.5
# libclang-dev is required by https://pub.dev/packages/ffigen
RUN dart pub global activate ffigen --version 8.0.0 && \
apt-get update && \
apt-get install -y libclang-dev
# TODO rm
# && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/flutter_rust_bridge_codegen /usr/local/bin/flutter_rust_bridge_codegen
CMD ["flutter_rust_bridge_codegen"]