Update Dockerfile
Browse files- Dockerfile +15 -1
Dockerfile
CHANGED
@@ -6,5 +6,19 @@ RUN useradd -m appuser && chown -R appuser:appuser /home/appuser
|
|
6 |
|
7 |
USER appuser
|
8 |
|
|
|
|
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
USER appuser
|
8 |
|
9 |
+
# Builder stage
|
10 |
+
FROM ubuntu:latest
|
11 |
|
12 |
+
RUN apt update && apt install curl -y
|
13 |
+
|
14 |
+
RUN curl curl -fsSL https://ollama.com/install.sh | sh
|
15 |
+
|
16 |
+
# Create the directory and give appropriate permissions
|
17 |
+
RUN mkdir -p /.ollama && chmod 777 /.ollama
|
18 |
+
|
19 |
+
# Command to run the application
|
20 |
+
CMD ollama serve & ollama pull mixtral
|
21 |
+
|
22 |
+
|
23 |
+
# Expose the server port
|
24 |
+
EXPOSE 7860
|