mirror of
https://github.com/neodyland/sbv2-api.git
synced 2026-01-09 16:02:56 +00:00
feat: docker(cpu), 1:n bert:vits2 support
This commit is contained in:
9
docker/cpu.Dockerfile
Normal file
9
docker/cpu.Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM rust AS builder
|
||||
WORKDIR /work
|
||||
COPY . .
|
||||
RUN cargo build -r --bin sbv2_api
|
||||
FROM gcr.io/distroless/cc-debian12
|
||||
WORKDIR /work
|
||||
COPY --from=builder /work/target/release/sbv2_api /work/main
|
||||
COPY --from=builder /work/target/release/*.so /work
|
||||
CMD ["/work/main"]
|
||||
1
docker/run.sh
Normal file
1
docker/run.sh
Normal file
@@ -0,0 +1 @@
|
||||
docker run -it --rm -p 3000:3000 --name sbv2 -v ./models:/work/models --env-file .env.sample sbv2
|
||||
Reference in New Issue
Block a user