mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 09:11:03 +02:00
More package hacking
This commit is contained in:
parent
256c115bde
commit
dc45babbb9
210 changed files with 20 additions and 126 deletions
|
|
@ -28,17 +28,19 @@ RUN pip3 install anthropic boto3 cohere openai google-cloud-aiplatform ollama \
|
|||
|
||||
FROM ai AS build
|
||||
|
||||
env PACKAGE_VERSION=0.0.0
|
||||
COPY trustgraph-base/ /root/build/trustgraph-base/
|
||||
COPY README.md /root/build/trustgraph-base/
|
||||
|
||||
COPY trustgraph-core/ /root/build/trustgraph-core/
|
||||
COPY README.md /root/build/trustgraph-core/
|
||||
COPY trustgraph-flow/ /root/build/trustgraph-flow/
|
||||
COPY README.md /root/build/trustgraph-flow/
|
||||
|
||||
COPY trustgraph-embeddings-hf/ /root/build/trustgraph-embeddings-hf/
|
||||
COPY README.md /root/build/trustgraph-embeddings-hf/
|
||||
|
||||
WORKDIR /root/build/
|
||||
|
||||
RUN pip3 wheel -w /root/wheels/ --no-deps ./trustgraph-core/
|
||||
RUN pip3 wheel -w /root/wheels/ --no-deps ./trustgraph-base/
|
||||
RUN pip3 wheel -w /root/wheels/ --no-deps ./trustgraph-flow/
|
||||
RUN pip3 wheel -w /root/wheels/ --no-deps ./trustgraph-embeddings-hf/
|
||||
|
||||
RUN ls /root/wheels
|
||||
|
|
@ -52,7 +54,8 @@ FROM ai
|
|||
COPY --from=build /root/wheels /root/wheels
|
||||
|
||||
RUN \
|
||||
pip3 install /root/wheels/trustgraph_core-* && \
|
||||
pip3 install /root/wheels/trustgraph_base-* && \
|
||||
pip3 install /root/wheels/trustgraph_flow-* && \
|
||||
pip3 install /root/wheels/trustgraph_embeddings_hf-* && \
|
||||
pip3 cache purge && \
|
||||
rm -rf /root/wheels
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue