Changes to be committed:

modified:   Dockerfile.local
This commit is contained in:
vinnimous
2024-03-19 16:57:51 -04:00
parent bf89c93461
commit 8d9d8105ab

View File

@@ -25,6 +25,9 @@ WORKDIR /home/worker/app
COPY pyproject.toml poetry.lock ./
RUN poetry install --extras "ui embeddings-huggingface llms-llama-cpp vector-stores-qdrant"
# Added by me for testing
RUN poetry run python /scripts/setup
RUN CMAKE_ARGS="-DLLAMA_METAL=on" pip install --force-reinstall
FROM base as app
@@ -46,7 +49,5 @@ COPY --chown=worker scripts/ scripts
ENV PYTHONPATH="$PYTHONPATH:/private_gpt/"
RUN poetry run python /scripts/setup
RUN CMAKE_ARGS="-DLLAMA_METAL=on" pip install --force-reinstall
USER worker
ENTRYPOINT python -m private_gpt