diff --git a/Dockerfile b/Dockerfile index 971bc2f..4645352 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ # 打包命令 -# docker buildx build -t lovelive_sif2:1.0.0 --platform=linux/amd64 . +# docker buildx build -t zhushenwudi/lovelive_sif2:1.0.0 --platform=linux/amd64 . # 使用适用于 Linux x86 的基础映像 # 保存镜像 -# docker save -o lovelive_sif2.tar lovelive_sif2:1.0.0 +# docker save -o lovelive_sif2.tar zhushenwudi/lovelive_sif2:1.0.0 FROM docker.io/library/debian:latest AS builder diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 5bf5f67..af65012 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,8 +1,8 @@ version: '3' services: lovelive_sif2: - image: lovelive_sif2:latest - container_name: lovelive_sif2 + image: zhushenwudi/lovelive_sif2:1.0.0 + container_name: sif2 environment: PORT: 8080 ASSET_PORT: 8000 diff --git a/readme.md b/readme.md index ff2f482..a772edd 100644 --- a/readme.md +++ b/readme.md @@ -28,4 +28,4 @@ A (mostly functioning) server for Love Live! School idol festival 2 MIRACLE LIVE **Build Rust:** Debug: `cargo run` -Release: `cargo build --release` +Release: `cargo build --release --jobs=16` diff --git a/src/router/webui.rs b/src/router/webui.rs index 1c23de5..b3e1d65 100644 --- a/src/router/webui.rs +++ b/src/router/webui.rs @@ -166,7 +166,7 @@ pub async fn asset(req: HttpRequest) -> impl Responder { if req.path() == "/" { return HttpResponse::Ok() .insert_header(ContentType::html()) - .body(include_file!("webui/dist/asset_index.html")); + .body(include_file!("src/web/asset_index.html")); } let path = req.path(); diff --git a/src/web/asset_index.html b/src/web/asset_index.html new file mode 100644 index 0000000..1ac8571 --- /dev/null +++ b/src/web/asset_index.html @@ -0,0 +1,12 @@ + + +
+ + +