-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 661 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (28 loc) · 661 Bytes
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
# Use a base image with Node.js and Chromium
FROM debian:bullseye-slim
# Install dependencies
RUN apt-get update && apt-get install -y \
curl \
xvfb \
libgtk-3-0 \
libnotify4 \
libnss3 \
libxss1 \
libxtst6 \
libasound2 \
libx11-xcb1 \
libgbm1 \
x11-utils \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
# Copy your app files
WORKDIR /app
COPY . /app
# Install app dependencies
RUN npm install
# Set environment variables if needed
ENV DISPLAY=:99
# Start the app
CMD ["npm", "start", "--", "--no-sandbox"]