justperquant commited on
Commit
8a82d95
·
verified ·
1 Parent(s): 18c7b17

update dockerfile for start.sh

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,21 +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 ollama serve & sleep 5 && python main.py
 
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
  RUN ollama pull llama3
9
 
10
+ # App setup
11
  WORKDIR /app
12
  COPY app /app
13
  COPY signals /app/signals
14
  COPY requirements.txt /app
15
+ COPY .env /app/.env
16
 
17
  RUN pip install -r requirements.txt
18
+ RUN chmod +x /app/start.sh
19
 
20
  EXPOSE 7860
21
+ CMD ["/app/start.sh"]