Spaces:
Build error
Build error
bentebbutt
commited on
Commit
•
3376c2b
1
Parent(s):
970a834
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -22,9 +22,9 @@ RUN chown -R pn:pn /var/cache/nginx \
|
|
22 |
/var/log/nginx/error.log \
|
23 |
/usr/share/nginx/html
|
24 |
|
25 |
-
# Install ollama and
|
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
|
@@ -54,7 +54,7 @@ COPY --chown=pn run.sh run.sh
|
|
54 |
RUN ls -a
|
55 |
RUN chmod +x run.sh
|
56 |
|
57 |
-
# Expose the port 8080 and 8000
|
58 |
-
EXPOSE 8080 8000
|
59 |
|
60 |
CMD ["bash", "run.sh"]
|
|
|
22 |
/var/log/nginx/error.log \
|
23 |
/usr/share/nginx/html
|
24 |
|
25 |
+
# Install ollama and start the server as the root user
|
26 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
27 |
+
RUN ollama serve &
|
28 |
|
29 |
# Switch back to the 'pn' user for installing dependencies and building the app
|
30 |
USER pn
|
|
|
54 |
RUN ls -a
|
55 |
RUN chmod +x run.sh
|
56 |
|
57 |
+
# Expose the port 11434 for ollama, 8080 for the backend, and 8000 for FastAPI
|
58 |
+
EXPOSE 11434 8080 8000
|
59 |
|
60 |
CMD ["bash", "run.sh"]
|