Update Dockerfile
Browse files- Dockerfile +13 -6
Dockerfile
CHANGED
|
@@ -1,8 +1,15 @@
|
|
| 1 |
-
# Use
|
| 2 |
-
FROM
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|