INITIAL
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
FROM node:18-bullseye-slim
|
||||
|
||||
# Install dependencies for Chromium, Wayland, and screenshot tool
|
||||
RUN apt-get update && apt-get install -y \
|
||||
chromium \
|
||||
sway \
|
||||
grim \
|
||||
jq \
|
||||
curl \
|
||||
&& 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
|
||||
|
||||
# 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