Amaranath commited on
Commit
ca097a4
·
verified ·
1 Parent(s): 58673df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -22
Dockerfile CHANGED
@@ -27,28 +27,8 @@ RUN chmod +x start.sh
27
  # Create directories for supervisor
28
  RUN mkdir -p /var/log/supervisor
29
 
30
- # Create supervisor configuration
31
- RUN cat > /etc/supervisor/conf.d/supervisord.conf << 'EOF'
32
- [supervisord]
33
- nodaemon=true
34
- user=root
35
-
36
- [program:ollama]
37
- command=ollama serve
38
- environment=OLLAMA_HOST=127.0.0.1:11434,OLLAMA_KEEP_ALIVE=24h
39
- user=user
40
- autorestart=true
41
- stdout_logfile=/var/log/supervisor/ollama.log
42
- stderr_logfile=/var/log/supervisor/ollama.log
43
-
44
- [program:fastapi]
45
- command=python app.py
46
- directory=/app
47
- user=user
48
- autorestart=true
49
- stdout_logfile=/var/log/supervisor/fastapi.log
50
- stderr_logfile=/var/log/supervisor/fastapi.log
51
- EOF
52
 
53
  # Expose port 7860 (required by Hugging Face Spaces)
54
  EXPOSE 7860
 
27
  # Create directories for supervisor
28
  RUN mkdir -p /var/log/supervisor
29
 
30
+ # Copy supervisor configuration
31
+ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  # Expose port 7860 (required by Hugging Face Spaces)
34
  EXPOSE 7860