Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
@@ -7,7 +7,7 @@ RUN curl -fsSL https://ollama.com/install.sh | sh
|
|
7 |
|
8 |
ENV OLLAMA_HOST=0.0.0.0
|
9 |
|
10 |
-
RUN useradd -m appuser && chown -R appuser:appuser /home/appuser
|
11 |
|
12 |
|
13 |
# Create the directory and give appropriate permissions
|
@@ -15,11 +15,9 @@ RUN mkdir -p /.ollama && chmod 777 /.ollama
|
|
15 |
|
16 |
WORKDIR /.ollama
|
17 |
|
18 |
-
CMD ollama pull mixtral
|
19 |
-
|
20 |
CMD ollama serve
|
21 |
|
22 |
-
USER appuser
|
23 |
|
24 |
# Expose the server port
|
25 |
EXPOSE 7860
|
|
|
7 |
|
8 |
ENV OLLAMA_HOST=0.0.0.0
|
9 |
|
10 |
+
#RUN useradd -m appuser && chown -R appuser:appuser /home/appuser
|
11 |
|
12 |
|
13 |
# Create the directory and give appropriate permissions
|
|
|
15 |
|
16 |
WORKDIR /.ollama
|
17 |
|
|
|
|
|
18 |
CMD ollama serve
|
19 |
|
20 |
+
#USER appuser
|
21 |
|
22 |
# Expose the server port
|
23 |
EXPOSE 7860
|