forked from zennn08/brat-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (20 loc) · 914 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (20 loc) · 914 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
FROM mcr.microsoft.com/playwright:focal
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD 1
WORKDIR /app
# ffmpeg buat nyusun frame jadi video (/bratvid), fontconfig+curl buat install font emoji
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg fontconfig curl ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Apple Color Emoji (build Linux), biar emoji di teks brat ke-render bukan kotak putih.
# Link lama udah 404, ini ganti ke source yang masih aktif.
RUN mkdir -p /usr/share/fonts/truetype/apple-color-emoji && \
curl -fL -o /usr/share/fonts/truetype/apple-color-emoji/AppleColorEmoji.ttf \
"https://github.com/samuelngs/apple-emoji-ttf/releases/download/macos-26-20260613-f1fc560b/AppleColorEmoji-Linux.ttf" && \
fc-cache -f -v
COPY package*.json ./
RUN npm install
COPY . .
RUN npx playwright install --with-deps
ENV PORT 7860
EXPOSE 7860
CMD ["node", "app.js"]