mirror of
https://github.com/neodyland/sbv2-api.git
synced 2025-12-22 23:49:58 +00:00
fix: lot of
This commit is contained in:
1
scripts/convert/.python-version
Normal file
1
scripts/convert/.python-version
Normal file
@@ -0,0 +1 @@
|
||||
3.11
|
||||
@@ -1,5 +1,6 @@
|
||||
style-bert-vits2
|
||||
git+https://github.com/neodyland/style-bert-vits2-ref
|
||||
onnxsim
|
||||
numpy<2
|
||||
zstandard
|
||||
onnxruntime
|
||||
cmake<4
|
||||
@@ -2,8 +2,16 @@ FROM rust AS builder
|
||||
WORKDIR /work
|
||||
COPY . .
|
||||
RUN cargo build -r --bin sbv2_api
|
||||
FROM gcr.io/distroless/cc-debian12
|
||||
FROM ubuntu AS upx
|
||||
WORKDIR /work
|
||||
RUN apt update && apt-get install -y upx binutils
|
||||
COPY --from=builder /work/target/release/sbv2_api /work/main
|
||||
COPY --from=builder /work/target/release/*.so /work
|
||||
CMD ["/work/main"]
|
||||
RUN upx --best --lzma /work/main
|
||||
RUN find /work -maxdepth 1 -name "*.so" -exec strip --strip-unneeded {} +
|
||||
RUN find /work -maxdepth 1 -name "*.so" -exec upx --best --lzma {} +
|
||||
FROM gcr.io/distroless/cc-debian12
|
||||
WORKDIR /work
|
||||
COPY --from=upx /work/main /work/main
|
||||
COPY --from=builder /work/*.so /work
|
||||
CMD ["/work/main"]
|
||||
|
||||
@@ -2,9 +2,17 @@ FROM rust AS builder
|
||||
WORKDIR /work
|
||||
COPY . .
|
||||
RUN cargo build -r --bin sbv2_api -F cuda,cuda_tf32
|
||||
FROM nvidia/cuda:12.3.2-cudnn9-runtime-ubuntu22.04
|
||||
FROM ubuntu AS upx
|
||||
WORKDIR /work
|
||||
RUN apt update && apt-get install -y upx
|
||||
COPY --from=builder /work/target/release/sbv2_api /work/main
|
||||
COPY --from=builder /work/target/release/*.so /work
|
||||
RUN upx --best --lzma /work/main
|
||||
RUN find /work -maxdepth 1 -name "*.so" -exec strip --strip-unneeded {} +
|
||||
RUN find /work -maxdepth 1 -name "*.so" -exec upx --best --lzma {} +
|
||||
FROM nvidia/cuda:12.3.2-cudnn9-runtime-ubuntu22.04
|
||||
WORKDIR /work
|
||||
COPY --from=upx /work/main /work/main
|
||||
COPY --from=builder /work/*.so /work
|
||||
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/work
|
||||
CMD ["/work/main"]
|
||||
CMD ["/work/main"]
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
docker run -it --rm -p 3000:3000 --name sbv2 \
|
||||
-v ./models:/work/models --env-file .env \
|
||||
ghcr.io/tuna2134/sbv2-api:cpu
|
||||
ghcr.io/neodyland/sbv2-api:cpu
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
docker run -it --rm -p 3000:3000 --name sbv2 \
|
||||
-v ./models:/work/models --env-file .env \
|
||||
--gpus all \
|
||||
ghcr.io/tuna2134/sbv2-api:cuda
|
||||
ghcr.io/neodyland/sbv2-api:cuda
|
||||
|
||||
Reference in New Issue
Block a user