Mythus commited on
Commit
7050eac
·
verified ·
1 Parent(s): 9b19d10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +35 -8
Dockerfile CHANGED
@@ -4,23 +4,50 @@ 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
- libasound2 \
13
- libdrm2 \
14
- libgbm1 \
15
- libx11-xcb1
16
 
17
  ENV PLAYWRIGHT_BROWSERS_PATH=/app/.pw
18
- # Install playwright and browser binaries
19
- RUN pip install playwright && \
20
- playwright install
21
 
22
  # Copy the Python script
23
  COPY generator.py .
 
 
24
  EXPOSE 8080
25
 
26
  # This script will run when the Docker container starts up
 
4
 
5
  # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
+ libdbus-glib-1-2 \
8
+ libxt6 \
9
  libnss3 \
10
+ libasound2 \
11
+ libatk1.0-0 \
12
+ libc6 \
13
+ libcairo2 \
14
+ libcups2 \
15
+ libdbus-1-3 \
16
+ libexpat1 \
17
+ libfontconfig1 \
18
+ libgcc1 \
19
+ libgconf-2-4 \
20
  libgdk-pixbuf2.0-0 \
21
+ libglib2.0-0 \
22
  libgtk-3-0 \
23
+ libnspr4 \
24
+ libpango-1.0-0 \
25
+ libpangocairo-1.0-0 \
26
+ libstdc++6 \
27
+ libx11-6 \
28
+ libx11-xcb1 \
29
+ libxcb1 \
30
+ libxcomposite1 \
31
+ libxcursor1 \
32
+ libxdamage1 \
33
+ libxext6 \
34
+ libxfixes3 \
35
+ libxi6 \
36
+ libxrandr2 \
37
+ libxrender1 \
38
  libxss1 \
39
+ libxtst6 \
40
+ libnss3
 
 
41
 
42
  ENV PLAYWRIGHT_BROWSERS_PATH=/app/.pw
43
+
44
+ # Install playwright and browser
45
+ RUN pip install playwright && playwright install
46
 
47
  # Copy the Python script
48
  COPY generator.py .
49
+
50
+ # Expose port
51
  EXPOSE 8080
52
 
53
  # This script will run when the Docker container starts up