-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (40 loc) · 970 Bytes
/
Dockerfile
File metadata and controls
50 lines (40 loc) · 970 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM ubuntu:22.04
# Set non-interactive mode to avoid prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install necessary packages
RUN apt-get update && apt-get install -y \
psmisc \
procps \
wget \
xdg-utils \
xvfb \
ffmpeg \
curl \
bash \
software-properties-common \
dbus-x11 \
dbus-user-session \
x11vnc \
x11-utils \
vlc \
pipewire \
pipewire-pulse \
wireplumber \
pipewire-audio-client-libraries \
pulseaudio-utils \
libportaudio2 \
&& rm -rf /var/lib/apt/lists/*
# Allow VLC to run as root
RUN sed -i 's/geteuid/getppid/' /usr/bin/vlc
# Set up the working directory
WORKDIR /app
# Copy the project files
COPY . .
# Set up the runtime directory for PipeWire
RUN mkdir -p /run/user/1000 && chmod 700 /run/user/1000
# Set up the environment
ENV DISPLAY=:99
# Create entrypoint script
COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]