ken4 commited on
Commit
4a7e174
·
verified ·
1 Parent(s): 712e268

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +48 -0
  2. brat-ip.tar.gz +3 -0
Dockerfile ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mcr.microsoft.com/playwright:focal
2
+
3
+ # Skip Playwright browser downloads
4
+ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
5
+
6
+ # Set timezone
7
+ ENV TZ=Asia/Jakarta
8
+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
9
+
10
+ WORKDIR /app
11
+
12
+ COPY brat-ip.tar.gz .
13
+
14
+ RUN tar -xzf brat-ip.tar.gz && rm brat-ip.tar.gz
15
+
16
+ WORKDIR /app
17
+
18
+ # Install dependencies
19
+ RUN npm install
20
+
21
+ # Install Playwright dependencies and browsers
22
+ RUN npx playwright install --with-deps
23
+
24
+ # Install additional dependencies for fonts
25
+ RUN apt-get update && apt-get install -y \
26
+ wget \
27
+ fontconfig \
28
+ fonts-noto-color-emoji \
29
+ fontconfig \
30
+ --no-install-recommends && \
31
+ rm -rf /var/lib/apt/lists/*
32
+
33
+ # Download and install AppleColorEmoji.ttf
34
+ RUN mkdir -p /usr/share/fonts/AppleColorEmoji && \
35
+ wget -O /usr/share/fonts/AppleColorEmoji/AppleColorEmoji.ttf \
36
+ https://github.com/samuelngs/apple-emoji-linux/releases/latest/download/AppleColorEmoji.ttf && \
37
+ fc-cache -f -v
38
+
39
+ RUN fc-list | grep -i "AppleColorEmoji"
40
+
41
+ # Set environment variable for the app port
42
+ ENV PORT=7860
43
+
44
+ # Expose the port
45
+ EXPOSE 7860
46
+
47
+ # Start the application
48
+ CMD ["node", "app.js"]
brat-ip.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58ddbc188a0e0fa1c8db2423240d76fd16f956bacdf07e8ca920efd8ce53a333
3
+ size 2602425