Skip to content

Commit

Permalink
fix: lock numpy to <2
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Jun 18, 2024
1 parent 10bd307 commit 2f4891e
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 199 deletions.
12 changes: 10 additions & 2 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ ENV PATH $POETRY_HOME/bin:$PATH

WORKDIR /

COPY pyproject.toml .
COPY pyproject.toml poetry.lock ./

RUN apt update
RUN apt install -y curl
RUN curl -sSL https://install.python-poetry.org | python -
RUN poetry install --without dev
RUN poetry install --without dev --no-root


FROM python:slim as model-builder

RUN pip install huggingface_hub
RUN python -c \
"from huggingface_hub import snapshot_download; snapshot_download('Systran/faster-distil-whisper-large-v3')"


FROM caddy:builder-alpine as caddy-builder
Expand All @@ -33,6 +40,7 @@ USER user
WORKDIR $HOME/app

COPY --chown=user --from=caddy-builder /usr/bin/caddy /usr/bin/caddy
COPY --chown=user --from=model-builder /root/.cache/huggingface $HOME/.cache/huggingface
COPY --chown=user --from=python-builder /usr/local/bin/gunicorn /usr/local/bin/supervisord /usr/local/bin/
COPY --chown=user --from=python-builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY --chown=user . $HOME/app
Expand Down
Loading

0 comments on commit 2f4891e

Please sign in to comment.