mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-06 09:20:33 +00:00
db70f1752a
and modify test batch
18 lines
510 B
Docker
18 lines
510 B
Docker
# syntax=docker/dockerfile:1.0.0-experimental
|
|
FROM tiangolo/uvicorn-gunicorn:python3.11
|
|
|
|
# Put first so anytime this file changes other cached layers are invalidated.
|
|
COPY gpt4all_api/requirements.txt /requirements.txt
|
|
|
|
RUN pip install --upgrade pip
|
|
|
|
# Run various pip install commands with ssh keys from host machine.
|
|
RUN --mount=type=ssh pip install -r /requirements.txt && \
|
|
rm -Rf /root/.cache && rm -Rf /tmp/pip-install*
|
|
|
|
# Finally, copy app and client.
|
|
COPY gpt4all_api/app /app
|
|
|
|
RUN mkdir -p /models
|
|
|