Skip to content

Commit

Permalink
Docker file improvements
Browse files Browse the repository at this point in the history
Build time reduced from 165s to 53s (on g6.4xlarge EC2 instance)
Final image size reduced from 6.07GB to 4.6GB
  • Loading branch information
Fedir Zadniprovskyi committed May 18, 2024
1 parent 4acdb5c commit 93152d9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM nvidia/cuda:12.0.0-runtime-ubuntu20.04

FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
WORKDIR /root
RUN apt-get update -y && apt-get install -y python3 python3-pip libcudnn8 libcudnn8-dev
RUN apt-get update -y && apt-get install -y python3-pip
COPY infer.py jfk.flac ./
RUN pip3 install faster-whisper

ENTRYPOINT ["python3", "infer.py"]
CMD ["python3", "infer.py"]

0 comments on commit 93152d9

Please sign in to comment.