Skip to content

Commit 526305a

Browse files
committed
fxxs dck
1 parent beb1bbf commit 526305a

File tree

1 file changed

+21
-32
lines changed

1 file changed

+21
-32
lines changed

Dockerfile

+21-32
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,26 @@ FROM node:23.3.0-slim AS builder
44
# Install pnpm globally and install necessary build tools
55
RUN npm install -g pnpm@9.4.0 && \
66
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 && \
827
apt-get clean && \
928
rm -rf /var/lib/apt/lists/*
1029

@@ -48,10 +67,6 @@ RUN pnpm prune --prod && \
4867
# Final stage
4968
FROM node:23.3.0-slim
5069

51-
ENV PLAYWRIGHT_BROWSERS_PATH=/usr/bin
52-
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
53-
ENV PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
54-
5570
# Install runtime dependencies and certificates first
5671
RUN apt-get update && \
5772
apt-get upgrade -y && \
@@ -97,38 +112,12 @@ RUN apt-get update && \
97112
libpango-1.0-0 \
98113
libcairo2 \
99114
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 && \
121116
apt-get clean && \
122117
rm -rf /var/lib/apt/lists/*
123118

124119
# Install pnpm and Google Cloud SDK
125120
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 && \
132121
apt-get update && \
133122
apt-get install -y git python3 curl gnupg && \
134123
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

Comments
 (0)