26 lines
445 B
Docker
26 lines
445 B
Docker
FROM node:18-bookworm-slim
|
|
|
|
# Install dependencies for WPE WebKit (Cog), X11, and DBus
|
|
RUN apt-get update && apt-get install -y \
|
|
cog \
|
|
wpewebkit \
|
|
x11-xserver-utils \
|
|
wmctrl \
|
|
xdotool \
|
|
scrot \
|
|
jq \
|
|
curl \
|
|
dbus-x11 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm install
|
|
|
|
COPY server.js ./
|
|
COPY start.sh /start.sh
|
|
RUN chmod +x /start.sh
|
|
|
|
CMD ["/start.sh"]
|