Dalleon commited on
Commit
70cf7cb
·
1 Parent(s): 3fbc5f9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +36 -0
Dockerfile ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Install dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ curl \
6
+ unzip \
7
+ xvfb \
8
+ libxi6 \
9
+ libgconf-2-4 \
10
+ libxtst6 \
11
+ libxss1 \
12
+ libnss3 \
13
+ libasound2
14
+
15
+ # Install Playwright
16
+ RUN pip install playwright
17
+
18
+ # Install browser dependencies
19
+ RUN playwright install
20
+
21
+ # Set up virtual environment
22
+ RUN python -m venv venv
23
+ ENV PATH="/venv/bin:$PATH"
24
+
25
+ # Install Python dependencies
26
+ COPY requirements.txt .
27
+ RUN pip install -r requirements.txt
28
+
29
+ # Set the working directory
30
+ WORKDIR /app
31
+
32
+ # Copy the code into the container
33
+ COPY . .
34
+
35
+ # Run the code
36
+ CMD ["python", "app.py"]