Echo-ai commited on
Commit
09628c7
·
verified ·
1 Parent(s): 3e9fba9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -6
Dockerfile CHANGED
@@ -11,12 +11,15 @@ USER user
11
  ENV HOME=/home/user PATH="/home/user/.local/bin:$PATH"
12
  WORKDIR $HOME/app
13
 
14
- # Copy start script
15
- COPY --chown=user start.sh .
16
- RUN chmod +x start.sh
 
 
 
17
 
18
- # Expose port 7860 (Hugging Face Spaces requirement)
19
- EXPOSE 7860:11434
20
 
21
- # Start Ollama on port 7860
22
  CMD ["./start.sh"]
 
11
  ENV HOME=/home/user PATH="/home/user/.local/bin:$PATH"
12
  WORKDIR $HOME/app
13
 
14
+ # Copy and install Python dependencies
15
+ COPY --chown=user requirements.txt .
16
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
17
+
18
+ # Copy the rest of the app
19
+ COPY --chown=user . .
20
 
21
+ # Make the start script executable
22
+ RUN chmod +x start.sh
23
 
24
+ # Start Ollama and the app
25
  CMD ["./start.sh"]