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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -6
Dockerfile CHANGED
@@ -1,8 +1,15 @@
1
- # Use the official OhMyCaptcha image
2
- FROM shenhaostu/ohmycaptcha:latest
3
 
4
- # Expose the port OhMyCaptcha uses
5
- EXPOSE 8000
6
 
7
- # Start the service
8
- CMD ["python", "main.py"]
 
 
 
 
 
 
 
 
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"]