thread tts

This commit is contained in:
mii
2022-11-18 09:08:27 +00:00
parent 708b6fc429
commit b7a4da7f3e
3 changed files with 33 additions and 18 deletions

View File

@ -1,18 +1,18 @@
FROM ubuntu:22.04
WORKDIR /usr/src/ncb-tts-r2
COPY Cargo.toml .
COPY src src
ENV PATH $PATH:/root/.cargo/bin/
RUN apt-get update \
&& apt-get install -y ffmpeg libssl-dev pkg-config libopus-dev wget curl gcc \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable \
&& rustup install stable \
&& cargo build --release \
&& rustup install stable
COPY Cargo.toml .
COPY src src
RUN cargo build --release \
&& cp /usr/src/ncb-tts-r2/target/release/ncb-tts-r2 /usr/bin/ncb-tts-r2 \
&& mkdir -p /ncb-tts-r2/audio \
&& apt-get purge -y pkg-config wget curl gcc \
&& rustup self uninstall -y
WORKDIR /ncb-tts-r2
CMD ["ncb-tts-r2"]
CMD ["ncb-tts-r2"]