initial implementation

This commit is contained in:
djmil 2024-07-18 22:27:17 +02:00
parent ff0c849c5a
commit b730f7640c
3 changed files with 26 additions and 0 deletions

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