JAYNESTV commited on
Commit
aacd1f1
Β·
verified Β·
1 Parent(s): b458140

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +67 -0
Dockerfile ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile β€” JAYNES MAX TV backend (PHP + Node/Puppeteer renderer)
2
+ # Hugging Face Spaces (Docker)
3
+ FROM php:8.2-cli
4
+
5
+ # ── Chromium + dependencies zake (kwa Puppeteer) ───────────────
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ chromium \
8
+ fonts-liberation \
9
+ libasound2 \
10
+ libatk-bridge2.0-0 \
11
+ libatk1.0-0 \
12
+ libcairo2 \
13
+ libcups2 \
14
+ libdbus-1-3 \
15
+ libexpat1 \
16
+ libfontconfig1 \
17
+ libgbm1 \
18
+ libglib2.0-0 \
19
+ libgtk-3-0 \
20
+ libnspr4 \
21
+ libnss3 \
22
+ libpango-1.0-0 \
23
+ libpangocairo-1.0-0 \
24
+ libx11-6 \
25
+ libx11-xcb1 \
26
+ libxcb1 \
27
+ libxcomposite1 \
28
+ libxcursor1 \
29
+ libxdamage1 \
30
+ libxext6 \
31
+ libxfixes3 \
32
+ libxi6 \
33
+ libxrandr2 \
34
+ libxrender1 \
35
+ libxshmfence1 \
36
+ libxss1 \
37
+ libxtst6 \
38
+ wget \
39
+ curl \
40
+ ca-certificates \
41
+ gnupg \
42
+ && rm -rf /var/lib/apt/lists/*
43
+
44
+ # ── Node.js 18 ──────────────────────────────────────────────────
45
+ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
46
+ && apt-get install -y nodejs \
47
+ && rm -rf /var/lib/apt/lists/*
48
+
49
+ # ── PHP curl extension ───────────────────────────────────────────
50
+ RUN apt-get update && apt-get install -y --no-install-recommends \
51
+ libcurl4-openssl-dev pkg-config \
52
+ && docker-php-ext-install curl \
53
+ && apt-get purge -y --auto-remove pkg-config \
54
+ && rm -rf /var/lib/apt/lists/*
55
+
56
+ WORKDIR /app
57
+ COPY . /app
58
+
59
+ # ── Node dependencies za renderer ────────────────────────────────
60
+ RUN cd /app/renderer && npm install --omit=dev
61
+
62
+ RUN chmod +x /app/start.sh
63
+
64
+ ENV CHROME_PATH=/usr/bin/chromium
65
+
66
+ EXPOSE 7860
67
+ CMD ["/app/start.sh"]