justperquant commited on
Commit
aaa98fc
·
verified ·
1 Parent(s): 92c83f8

create dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # --- System dependencies ---
4
+ RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
5
+
6
+ # --- Ollama install ---
7
+ RUN curl -fsSL https://ollama.com/install.sh | sh
8
+
9
+ # --- Pull desired model (e.g. llama3) ---
10
+ RUN ollama pull llama3
11
+
12
+ # --- App setup ---
13
+ WORKDIR /app
14
+ COPY app /app
15
+ COPY signals /app/signals
16
+ COPY requirements.txt /app
17
+
18
+ RUN pip install -r requirements.txt
19
+
20
+ EXPOSE 7860
21
+ CMD ["python", "main.py"]