vedaco commited on
Commit
98d540d
·
verified ·
1 Parent(s): a20af99

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ollama/ollama:latest
2
+
3
+ # Install Node.js
4
+ RUN apt-get update && apt-get install -y curl
5
+ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
6
+ RUN apt-get install -y nodejs
7
+
8
+ # Set working directory
9
+ WORKDIR /app
10
+
11
+ # Copy package files
12
+ COPY package*.json ./
13
+ RUN npm install
14
+
15
+ # Copy application code
16
+ COPY . .
17
+
18
+ # Pull the model during build
19
+ RUN ollama serve & \
20
+ sleep 10 && \
21
+ ollama pull qwen3.5:0.8b && \
22
+ pkill ollama
23
+
24
+ # Expose port
25
+ EXPOSE 7860
26
+
27
+ # Start script
28
+ COPY start.sh /start.sh
29
+ RUN chmod +x /start.sh
30
+
31
+ CMD ["/start.sh"]