wasm32 build target #10

Merged
djmil merged 9 commits from dev-container into master 2024-08-31 12:23:28 +02:00
3 changed files with 26 additions and 0 deletions
Showing only changes of commit b730f7640c - Show all commits

12
docker/Dockerfile Normal file
View 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
View 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
View 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