Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +15 -1
Dockerfile
CHANGED
@@ -1,3 +1,17 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
EXPOSE 7860
|
|
|
1 |
+
# Builder stage
|
2 |
+
FROM ubuntu:latest
|
3 |
+
|
4 |
+
RUN apt update && apt install curl -y
|
5 |
+
|
6 |
+
RUN curl curl -fsSL https://ollama.com/install.sh | sh
|
7 |
+
|
8 |
+
# Create the directory and give appropriate permissions
|
9 |
+
RUN mkdir -p /.ollama && chmod 777 /.ollama
|
10 |
+
|
11 |
+
# Command to run the application
|
12 |
+
CMD ollama serve & ollama pull mistral
|
13 |
+
|
14 |
+
# Expose the server port
|
15 |
+
EXPOSE 7860
|
16 |
|
17 |
EXPOSE 7860
|