Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
FROM ollama/ollama
|
2 |
|
3 |
WORKDIR /code
|
|
|
|
|
|
|
|
|
|
|
4 |
ENV OLLAMA_MAX_LOADED_MODELS=20 --OLLAMA_NUM_PARALLEL=20
|
5 |
|
6 |
CMD ["serve"]
|
|
|
1 |
FROM ollama/ollama
|
2 |
|
3 |
WORKDIR /code
|
4 |
+
RUN mkdir -p /code && chmod 777 /code
|
5 |
+
RUN mkdir -p /ollama && chmod 777 /ollama
|
6 |
+
RUN chown -R user:user /code
|
7 |
+
|
8 |
+
|
9 |
ENV OLLAMA_MAX_LOADED_MODELS=20 --OLLAMA_NUM_PARALLEL=20
|
10 |
|
11 |
CMD ["serve"]
|