HeoooLel commited on
Commit
d0c6c68
·
verified ·
1 Parent(s): 8eb7bd2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -1,15 +1,18 @@
1
- # Use a Python image with Playwright (needed for hCaptcha)
2
  FROM ://microsoft.com
3
 
4
  # Set work directory
5
  WORKDIR /app
6
 
7
- # Install the solver system
8
  RUN pip install fastapi uvicorn playwright-stealth
9
  RUN playwright install chromium
10
 
11
- # Create a simple API for your Termux script to talk to
12
  COPY . .
13
 
14
- # Run the API on port 7860 (Hugging Face default)
15
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
1
+ # Use the official Microsoft Playwright image
2
  FROM ://microsoft.com
3
 
4
  # Set work directory
5
  WORKDIR /app
6
 
7
+ # Install dependencies
8
  RUN pip install fastapi uvicorn playwright-stealth
9
  RUN playwright install chromium
10
 
11
+ # Copy your main.py (make sure you created main.py in the Space too)
12
  COPY . .
13
 
14
+ # Hugging Face uses port 7860
15
+ EXPOSE 7860
16
+
17
+ # Run the API
18
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]