-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (45 loc) · 1.26 KB
/
Dockerfile
File metadata and controls
54 lines (45 loc) · 1.26 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM python:3.12-slim
LABEL maintainer="NEURASCOPE <contact@neurascope.ai>"
LABEL description="NeuraScreen — Automated demo video generator (headless)"
# System dependencies: ffmpeg, Xvfb, and Playwright browser deps
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
xvfb \
xauth \
libnss3 \
libatk-bridge2.0-0 \
libdrm2 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libasound2 \
libpangocairo-1.0-0 \
libgtk-3-0 \
libx11-xcb1 \
libxshmfence1 \
fonts-liberation \
fonts-noto-color-emoji \
pulseaudio \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install NeuraScreen
COPY pyproject.toml README.md LICENSE ./
COPY neurascreen/ ./neurascreen/
RUN pip install --no-cache-dir ".[all]"
# Install Playwright Chromium
RUN playwright install chromium
# Copy examples and entrypoint
COPY examples/ ./examples/
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Output and temp directories
RUN mkdir -p /app/output /app/temp /app/logs
# Default env for headless operation
ENV BROWSER_HEADLESS=true
ENV DISPLAY=:99
ENV OUTPUT_DIR=/app/output
ENV TEMP_DIR=/app/temp
ENV LOGS_DIR=/app/logs
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["--help"]