refactor(core): transition to WPE
This commit is contained in:
+7
-6
@@ -1,12 +1,16 @@
|
||||
FROM node:18-bullseye-slim
|
||||
FROM node:18-bookworm-slim
|
||||
|
||||
# Install dependencies for Chromium and X11
|
||||
# Install dependencies for WPE WebKit (Cog), X11, and DBus
|
||||
RUN apt-get update && apt-get install -y \
|
||||
chromium \
|
||||
cog \
|
||||
wpewebkit \
|
||||
x11-xserver-utils \
|
||||
wmctrl \
|
||||
xdotool \
|
||||
scrot \
|
||||
jq \
|
||||
curl \
|
||||
dbus-x11 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
@@ -18,7 +22,4 @@ COPY server.js ./
|
||||
COPY start.sh /start.sh
|
||||
RUN chmod +x /start.sh
|
||||
|
||||
# Provide a default user data directory
|
||||
RUN mkdir -p /data/chromium && chown -R node:node /data
|
||||
|
||||
CMD ["/start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user