fix(dockerfile): fix docker build (#32)
This commit is contained in:
parent
5c01e2544c
commit
13e7044ab7
|
@ -57,7 +57,7 @@ COPY server/Makefile server/Makefile
|
|||
RUN cd server && make install-torch
|
||||
|
||||
# Install specific version of transformers
|
||||
RUN cd server && make install-transformers
|
||||
RUN cd server && BUILD_EXTENSIONS="True" make install-transformers
|
||||
|
||||
# Install server
|
||||
COPY proto proto
|
||||
|
|
|
@ -19,7 +19,7 @@ install-transformers:
|
|||
|
||||
install-torch:
|
||||
# Install specific version of torch
|
||||
pip install torch --extra-index-url https://download.pytorch.org/whl/cu116 --no-cache-dir
|
||||
pip install torch --extra-index-url https://download.pytorch.org/whl/cu118 --no-cache-dir
|
||||
|
||||
install: gen-server install-torch install-transformers
|
||||
pip install pip --upgrade
|
||||
|
|
Loading…
Reference in New Issue