ABDALLALSWAITI commited on
Commit
37b4054
·
verified ·
1 Parent(s): 8ce635b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y \
10
  chromium \
11
  chromium-sandbox \
12
  fonts-liberation \
 
 
13
  libasound2 \
14
  libatk-bridge2.0-0 \
15
  libatk1.0-0 \
@@ -53,11 +55,10 @@ RUN mkdir -p /tmp && chmod 777 /tmp
53
  ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
54
  ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
55
  ENV PYTHONUNBUFFERED=1
 
56
 
57
  # Expose port
58
  EXPOSE 7860
59
 
60
- # No explicit HEALTHCHECK needed - Hugging Face Spaces will check port 7860
61
-
62
- # Start application
63
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
 
10
  chromium \
11
  chromium-sandbox \
12
  fonts-liberation \
13
+ fonts-noto \
14
+ fonts-noto-cjk \
15
  libasound2 \
16
  libatk-bridge2.0-0 \
17
  libatk1.0-0 \
 
55
  ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
56
  ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
57
  ENV PYTHONUNBUFFERED=1
58
+ ENV PORT=7860
59
 
60
  # Expose port
61
  EXPOSE 7860
62
 
63
+ # Start application with keep-alive settings
64
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--timeout-keep-alive", "75"]