wasm32 build target #10
12
docker/Dockerfile
Normal file
12
docker/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM rust:1.79
|
||||||
|
|
||||||
|
RUN rustup target add wasm32-unknown-unknown
|
||||||
|
|
||||||
|
RUN cargo install --locked trunk
|
||||||
|
|
||||||
|
ENTRYPOINT ["trunk"]
|
||||||
|
|
||||||
|
CMD ["serve"]
|
||||||
|
|
||||||
|
WORKDIR /egui-circles
|
||||||
|
|
4
docker/make-builder.sh
Executable file
4
docker/make-builder.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
docker build --tag egui-circles-builder:0.0.1 .
|
10
docker/serve.sh
Executable file
10
docker/serve.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
PROJECT_NAME=egui-circles
|
||||||
|
|
||||||
|
docker run \
|
||||||
|
--volume $(pwd)/..:/$PROJECT_NAME \
|
||||||
|
--name vsc-$PROJECT_NAME \
|
||||||
|
-p 8080:8080 \
|
||||||
|
$PROJECT_NAME-builder:0.0.1
|
Loading…
Reference in New Issue
Block a user