forked from Bostwickenator/ch.rip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
82 lines (69 loc) · 1.75 KB
/
Dockerfile
File metadata and controls
82 lines (69 loc) · 1.75 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# ch.rip - Dockerized with noVNC for browser-based interaction
FROM ubuntu:22.04
# Prevent interactive prompts during package install
ENV DEBIAN_FRONTEND=noninteractive
# Install Node.js repo first, then install everything in one layer
RUN apt-get update && apt-get install -y curl ca-certificates \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y \
# Virtual display
xvfb \
# VNC server
x11vnc \
# Lightweight window manager
openbox \
# noVNC dependencies
novnc \
websockify \
nodejs \
ffmpeg \
wget \
# Chrome for Testing shared library dependencies
libglib2.0-0 \
libnss3 \
libnspr4 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libdrm2 \
libdbus-1-3 \
libxcb1 \
libxkbcommon0 \
libx11-6 \
libxcomposite1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxrandr2 \
libgbm1 \
libpango-1.0-0 \
libcairo2 \
libasound2 \
libatspi2.0-0 \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy package files and install dependencies first (layer caching)
COPY package*.json ./
RUN npm install
# Copy application files
COPY chrip.js repack.js ./
# Copy the Chrome extension (required - not available via npm)
COPY ext/ ./ext/
# Output directory - mount your audiobook library here
# e.g. docker run -v /your/audiobooks:/output ...
RUN mkdir -p /output
# VNC password (optional, set to empty for no auth)
ENV VNC_PASSWORD=""
# Display settings
ENV DISPLAY=:1
ENV SCREEN_WIDTH=1280
ENV SCREEN_HEIGHT=800
ENV SCREEN_DEPTH=24
# noVNC port
EXPOSE 6080
# Copy and set entrypoint
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]