Use local source instead of redownloading in Dockerfile.build

This commit is contained in:
Jeremiah Rose 2021-09-07 09:45:31 +10:00
parent 07ed417627
commit d85187aa44
1 changed files with 1 additions and 9 deletions

View File

@ -3,9 +3,6 @@
# Need devel version cause we need /usr/include/cudnn.h
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
ARG STT_REPO=https://github.com/coqui-ai/STT.git
ARG STT_SHA=origin/main
# >> START Install base software
# Get basic packages
@ -112,12 +109,7 @@ RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone" \
# << END Configure Bazel
WORKDIR /
RUN git clone --recursive $STT_REPO STT
WORKDIR /STT
RUN git checkout $STT_SHA
RUN git submodule sync tensorflow/
RUN git submodule update --init tensorflow/
COPY . /STT/
# >> START Build and bind