Mythus commited on
Commit
31ceefd
1 Parent(s): f91bda6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim-buster
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ libglib2.0-0 \
8
+ libnss3 \
9
+ libgdk-pixbuf2.0-0 \
10
+ libgtk-3-0 \
11
+ libxss1
12
+
13
+ # Install playwright and browser binaries
14
+ RUN pip install playwright && \
15
+ playwright install
16
+
17
+ # Copy the Python script
18
+ COPY generator.py .
19
+
20
+ # Copy the requirements.txt (if any)
21
+ COPY requirements.txt .
22
+
23
+
24
+
25
+ # This script will run when the Docker container starts up
26
+ CMD ["python", "/app/generator.py"]