Spaces:
Sleeping
Sleeping
this will work (fr)
Browse files- Dockerfile +3 -12
Dockerfile
CHANGED
@@ -1,14 +1,5 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
RUN pip install -r /code/requirements.txt
|
8 |
-
RUN curl -fsSL https://ollama.com/install.sh | sh
|
9 |
-
RUN ollama serve
|
10 |
-
RUN ollama run phi3
|
11 |
-
|
12 |
-
COPY . .
|
13 |
-
|
14 |
-
CMD ["gunicorn", "-w", "20", "main:app"]
|
|
|
1 |
+
FROM ollama/ollama
|
2 |
|
3 |
+
ENV OLLAMA_MAX_LOADED_MODELS=20 --OLLAMA_NUM_PARALLEL=20
|
4 |
|
5 |
+
CMD ["serve"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|