Echo-ai commited on
Commit
173c617
·
verified ·
1 Parent(s): 27abc53

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -9
Dockerfile CHANGED
@@ -11,15 +11,12 @@ USER user
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"]
 
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
20
+
21
+ # Start Ollama on port 7860
22
  CMD ["./start.sh"]