-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (34 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
43 lines (34 loc) · 1.05 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
FROM node:22-bookworm-slim
# Install system dependencies: ffmpeg (includes ffprobe) and Chrome Headless Shell shared libs
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
libnss3 \
libdbus-1-3 \
libatk1.0-0 \
libgbm-dev \
libasound2 \
libxrandr2 \
libxkbcommon-dev \
libxfixes3 \
libxcomposite1 \
libxdamage1 \
libatk-bridge2.0-0 \
libcups2 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Enable pnpm via corepack
RUN corepack enable pnpm
# Install dependencies (pnpm workspace — root + web only, docs deploys separately)
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY web/package.json ./web/
RUN pnpm install --frozen-lockfile --filter=!docs
# Install Chrome Headless Shell for Remotion rendering
RUN npx remotion browser ensure
# Copy full source
COPY . .
# Build frontend
RUN cd web && npx vite build
# Create directories
RUN mkdir -p /output /app/jobs
# Default: CLI mode (backwards compatible)
ENTRYPOINT ["npx", "tsx", "src/index.ts", "--yes", "-o", "/output"]