@@ -4,7 +4,26 @@ FROM node:23.3.0-slim AS builder
4
4
# Install pnpm globally and install necessary build tools
5
5
RUN npm install -g pnpm@9.4.0 && \
6
6
apt-get update && \
7
- apt-get install -y git python3 make g++ curl && \
7
+ apt-get install -y git python3 make g++ curl \
8
+ chromium \
9
+ libglib2.0-0 \
10
+ libnss3 \
11
+ libnspr4 \
12
+ libdbus-1-3 \
13
+ libatk1.0-0 \
14
+ libatk-bridge2.0-0 \
15
+ libcups2 \
16
+ libdrm2 \
17
+ libxkbcommon0 \
18
+ libxcomposite1 \
19
+ libxdamage1 \
20
+ libxfixes3 \
21
+ libxrandr2 \
22
+ libgbm1 \
23
+ libpango-1.0-0 \
24
+ libcairo2 \
25
+ libasound2 \
26
+ libatspi2.0-0 && \
8
27
apt-get clean && \
9
28
rm -rf /var/lib/apt/lists/*
10
29
@@ -48,10 +67,6 @@ RUN pnpm prune --prod && \
48
67
# Final stage
49
68
FROM node:23.3.0-slim
50
69
51
- ENV PLAYWRIGHT_BROWSERS_PATH=/usr/bin
52
- ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
53
- ENV PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
54
-
55
70
# Install runtime dependencies and certificates first
56
71
RUN apt-get update && \
57
72
apt-get upgrade -y && \
@@ -97,38 +112,12 @@ RUN apt-get update && \
97
112
libpango-1.0-0 \
98
113
libcairo2 \
99
114
libasound2 \
100
- libatspi2.0-0 \
101
- libgconf-2-4 \
102
- libatk1.0-0 \
103
- libatk-bridge2.0-0 \
104
- libgdk-pixbuf2.0-0 \
105
- libgtk-3-0 \
106
- libnss3 \
107
- libx11-xcb1 \
108
- libxcomposite1 \
109
- libxcursor1 \
110
- libxdamage1 \
111
- libxfixes3 \
112
- libxi6 \
113
- libxrandr2 \
114
- libxss1 \
115
- libxtst6 \
116
- fonts-liberation \
117
- libasound2 \
118
- libcups2 \
119
- libdbus-1-3 \
120
- libxshmfence1 && \
115
+ libatspi2.0-0 && \
121
116
apt-get clean && \
122
117
rm -rf /var/lib/apt/lists/*
123
118
124
119
# Install pnpm and Google Cloud SDK
125
120
RUN npm install -g pnpm@9.4.0 && \
126
- export PLAYWRIGHT_BROWSERS_PATH=/usr/bin && \
127
- export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 && \
128
- export PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium && \
129
- npm install -g playwright && \
130
- npx playwright install chromium && \
131
- npx playwright install-deps chromium && \
132
121
apt-get update && \
133
122
apt-get install -y git python3 curl gnupg && \
134
123
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
0 commit comments