danish900 commited on
Commit
0ab39c6
·
1 Parent(s): ad69fc8

Add Dockerfile for Hugging Face Spaces

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ # Install Playwright browsers (Chromium)
9
+ RUN playwright install chromium
10
+ RUN playwright install-deps
11
+
12
+ COPY . .
13
+
14
+ # Expose port for the keep-alive ping
15
+ EXPOSE 7860
16
+
17
+ # Run all three scripts: web server, bot, and pinger
18
+ CMD gunicorn app:app --bind 0.0.0.0:7860 & python bot.py & python ping.py