Bjo53 commited on
Commit
7686908
·
verified ·
1 Parent(s): 02f0e89

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile CHANGED
@@ -1,10 +1,29 @@
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
 
 
 
8
  COPY . .
9
 
 
 
 
 
10
  CMD ["python", "main.py"]
 
1
+ # Use Python 3.10 Slim
2
  FROM python:3.10-slim
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
 
7
+ # 🛠️ INSTALL SYSTEM DEPENDENCIES
8
+ # We added 'curl' here so your bridge works!
9
+ RUN apt-get update && apt-get install -y \
10
+ curl \
11
+ git \
12
+ wget \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Install Python libraries
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
+ # Install Playwright Browsers (for your screenshots)
20
+ RUN playwright install --with-deps chromium
21
+
22
+ # Copy the rest of the code
23
  COPY . .
24
 
25
+ # Permissions for writing files
26
+ RUN chmod 777 /app
27
+
28
+ # Start the bot
29
  CMD ["python", "main.py"]