Skip to content

Commit

Permalink
chore(no_model): Improve build time caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 authored Aug 30, 2023
1 parent 6e1e1bd commit a1f3ffe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.no_model
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ FROM python:3.10-slim as dependencies
# Setup venv
RUN python3 -m venv /venv
ARG PATH="/venv/bin:$PATH"
RUN python3 -m pip install --upgrade pip setuptools
RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip setuptools
# Install requirements
RUN python3 -m pip install torch torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
RUN --mount=type=cache,target=/root/.cache/pip pip install torch torchaudio --extra-index-url https://download.pytorch.org/whl/cu118

# Add git
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends git

# Install whisperX
COPY ./whisperX /code
RUN python3 -m pip install /code
RUN --mount=type=cache,target=/root/.cache/pip pip install /code


FROM python:3.10-slim
Expand Down

0 comments on commit a1f3ffe

Please sign in to comment.