SorenDreano commited on
Commit
473dad5
·
unverified ·
1 Parent(s): 9f2be81

add images

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. start.sh +2 -2
Dockerfile CHANGED
@@ -36,7 +36,7 @@ WORKDIR /home/user/app
36
  COPY --chown=user:user app.py /home/user/app/app.py
37
  COPY --chown=user:user start.sh /home/user/app/start.sh
38
  COPY --chown=user:user numarkdown.svg /home/user/app/numarkdown.svg
39
- COPY --chown=user:user example_images/ $HOME/app/example_images/
40
 
41
  RUN mkdir -p \
42
  /home/user/.cache/huggingface \
 
36
  COPY --chown=user:user app.py /home/user/app/app.py
37
  COPY --chown=user:user start.sh /home/user/app/start.sh
38
  COPY --chown=user:user numarkdown.svg /home/user/app/numarkdown.svg
39
+ COPY --chown=user:user example_images /home/user/app/example_images/
40
 
41
  RUN mkdir -p \
42
  /home/user/.cache/huggingface \
start.sh CHANGED
@@ -18,7 +18,7 @@ echo "vLLM started with PID: $VLLM_PID"
18
 
19
  # More aggressive waiting with health checks
20
  echo "Waiting for vLLM server to start (this may take 5-10 minutes)..."
21
- for i in {1..180}; do # Wait up to 6 minutes
22
  if curl -s --connect-timeout 5 http://localhost:8000/health > /dev/null 2>&1; then
23
  echo "✓ vLLM health check passed!"
24
  break
@@ -29,7 +29,7 @@ for i in {1..180}; do # Wait up to 6 minutes
29
 
30
  # Show progress every 10 seconds
31
  if [ $((i % 10)) -eq 0 ]; then
32
- echo "Still waiting... ($i/180) - checking vLLM process"
33
  if ! ps -p $VLLM_PID > /dev/null; then
34
  echo "❌ vLLM process died! Checking logs:"
35
  tail -20 $HOME/app/vllm.log
 
18
 
19
  # More aggressive waiting with health checks
20
  echo "Waiting for vLLM server to start (this may take 5-10 minutes)..."
21
+ for i in {1..360}; do # Wait up to 6 minutes
22
  if curl -s --connect-timeout 5 http://localhost:8000/health > /dev/null 2>&1; then
23
  echo "✓ vLLM health check passed!"
24
  break
 
29
 
30
  # Show progress every 10 seconds
31
  if [ $((i % 10)) -eq 0 ]; then
32
+ echo "Still waiting... ($i/360) - checking vLLM process"
33
  if ! ps -p $VLLM_PID > /dev/null; then
34
  echo "❌ vLLM process died! Checking logs:"
35
  tail -20 $HOME/app/vllm.log