From 2c26497d9680ab118cae84036c6d7ec05c6a103a Mon Sep 17 00:00:00 2001 From: Josh Meyer Date: Fri, 16 Jul 2021 09:32:19 -0400 Subject: [PATCH] Cleanup for smaller containers --- Dockerfile.train | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile.train b/Dockerfile.train index b4a2926d..a31f17b3 100644 --- a/Dockerfile.train +++ b/Dockerfile.train @@ -30,7 +30,9 @@ RUN cd /code/kenlm && \ FROM ubuntu:20.04 AS wget-binaries ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update && apt-get install -y --no-install-recommends wget unzip xz-utils +RUN apt-get update && \ + apt-get install -y --no-install-recommends wget unzip xz-utils && \ + rm -rf /var/lib/apt/lists/* # Tool to convert output graph for inference RUN wget --no-check-certificate https://github.com/coqui-ai/STT/releases/download/v0.9.3/convert_graphdef_memmapped_format.linux.amd64.zip -O temp.zip && \ @@ -59,7 +61,7 @@ RUN apt-get update && \ sox \ libsox-fmt-mp3 && \ apt-get purge -y python3-xdg && \ - rm -rf /var/lib/apt/lists/ + rm -rf /var/lib/apt/lists/* # Make sure pip and its dependencies are up-to-date RUN pip3 install --upgrade pip wheel setuptools