Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -22,9 +22,12 @@ RUN chown -R pn:pn /var/cache/nginx \
|
|
22 |
/var/log/nginx/error.log \
|
23 |
/usr/share/nginx/html
|
24 |
|
25 |
-
# Install ollama
|
26 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
27 |
-
|
|
|
|
|
|
|
28 |
|
29 |
# Switch back to the 'pn' user for installing dependencies and building the app
|
30 |
USER pn
|
|
|
22 |
/var/log/nginx/error.log \
|
23 |
/usr/share/nginx/html
|
24 |
|
25 |
+
# Install ollama
|
26 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
27 |
+
|
28 |
+
# Create the directory and give appropriate permissions
|
29 |
+
RUN mkdir -p /.ollama && chmod 777 /.ollama
|
30 |
+
WORKDIR /.ollama
|
31 |
|
32 |
# Switch back to the 'pn' user for installing dependencies and building the app
|
33 |
USER pn
|