mirror of https://github.com/coqui-ai/TTS.git
Moved Dockerfile, COPY at the end
This change should prevent re-installation of the dependencies upon every change of the repository's contents. Typically if Docker detects that something changed in a layer, all downstream layers are invalidated and rebuilt.
This commit is contained in:
parent
29dede20d3
commit
59bba20069
|
@ -1,13 +1,18 @@
|
|||
ARG BASE=nvidia/cuda:11.8.0-base-ubuntu22.04
|
||||
FROM ${BASE}
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y
|
||||
RUN apt-get install -y --no-install-recommends gcc g++ make python3 python3-dev python3-pip python3-venv python3-wheel espeak-ng libsndfile1-dev && rm -rf /var/lib/apt/lists/*
|
||||
RUN pip3 install llvmlite --ignore-installed
|
||||
|
||||
WORKDIR /root
|
||||
COPY . /root
|
||||
# Install Dependencies:
|
||||
RUN pip3 install torch torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
|
||||
RUN rm -rf /root/.cache/pip
|
||||
RUN make install
|
||||
|
||||
# Copy TTS repository contents:
|
||||
WORKDIR /root
|
||||
COPY . /root
|
||||
|
||||
ENTRYPOINT ["tts"]
|
||||
CMD ["--help"]
|
Loading…
Reference in New Issue