Create Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM mcr.microsoft.com/playwright/python:v1.47.0-noble
|
2 |
+
WORKDIR /code
|
3 |
+
RUN chmod 777 /code
|
4 |
+
RUN pip install patchright apscheduler fastapi httpx python-multipart uvicorn
|
5 |
+
RUN mkdir -p /.cache && chmod 777 /.cache
|
6 |
+
RUN patchright install --with-deps chromium
|
7 |
+
COPY . .
|
8 |
+
CMD ["python", "/code/app.py"]
|