kshitijthakkar commited on
Commit
cb569c6
·
1 Parent(s): 61b9e03

Docker file fix

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -2,8 +2,7 @@
2
  FROM python:3.11-slim
3
 
4
  # Install system dependencies as root
5
- RUN apt-get update && apt-get install -y build-essential && apt-get install -y curl wget vim && \
6
- apt-get clean && rm -rf /var/lib/apt/lists/*
7
 
8
  # Create user and set up directory structure as root
9
  RUN useradd -m -u 1000 user && \
@@ -25,7 +24,9 @@ COPY --chown=user:user ./requirements.txt requirements.txt
25
  RUN pip install --no-cache-dir --upgrade pip && \
26
  pip install --no-cache-dir --user -r requirements.txt
27
 
 
 
28
  EXPOSE 8000 7860
29
-
30
- #CMD ["sh", "-c", "uvicorn mcp_server:app --host 0.0.0.0 --port 8000 && python app.py"]
31
- CMD bash -c "python /app/mcp_server.py & sleep 300 && python /app/app.py"
 
2
  FROM python:3.11-slim
3
 
4
  # Install system dependencies as root
5
+ RUN apt-get update && apt-get install -y build-essential && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
 
6
 
7
  # Create user and set up directory structure as root
8
  RUN useradd -m -u 1000 user && \
 
24
  RUN pip install --no-cache-dir --upgrade pip && \
25
  pip install --no-cache-dir --user -r requirements.txt
26
 
27
+ # Make start.sh executable
28
+ RUN chmod +x run.sh
29
  EXPOSE 8000 7860
30
+ # Run the startup script
31
+ #CMD ["sh", "-c", "bash run.sh"]
32
+ CMD bash -c "python /app/mcp_server.py & sleep 60 && python /app/app.py"