Skip to content

Commit

Permalink
fix for hf dockerfile (#2313)
Browse files Browse the repository at this point in the history
without this, transformers would be installed twice with conflicting
versions
  • Loading branch information
yk committed Apr 3, 2023
1 parent 96cdac3 commit 9e46bc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/inference/Dockerfile.worker-hf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ARG APP_RELATIVE_PATH
WORKDIR /build

COPY ./${APP_RELATIVE_PATH}/requirements.txt requirements-base.txt
RUN grep -v "transformers" requirements-base.txt > requirements-base.txt.tmp && mv requirements-base.txt.tmp requirements-base.txt
COPY ./${APP_RELATIVE_PATH}/requirements-hf.txt .

RUN cat requirements-base.txt requirements-hf.txt > requirements.txt
Expand Down

0 comments on commit 9e46bc4

Please sign in to comment.