-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (35 loc) · 762 Bytes
/
Dockerfile
File metadata and controls
39 lines (35 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM node:20-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
git \
python3 \
make \
g++ \
sqlite3 \
libsqlite3-dev \
curl \
ca-certificates \
chromium \
chromium-sandbox \
fonts-freefont-ttf \
fonts-ipafont-gothic \
fonts-kacst \
fonts-liberation \
fonts-noto-color-emoji \
fonts-thai-tlwg \
libx11-xcb1 \
libxcb-dri3-0 \
libxcomposite1 \
libxdamage1 \
libxi6 \
libxrandr2 \
libxshmfence1 \
libxtst6 \
&& apt-get clean \
&& ln -s /usr/bin/chromium /usr/bin/chromium-browser || true
COPY package*.json ./
RUN npm install --ignore-scripts
# Install Chrome via Puppeteer as fallback (system Chromium will be used first)
RUN npx puppeteer browsers install chrome || true
COPY . .
RUN npm run build