Update Dockerfile
Browse files- Dockerfile +21 -6
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM ubuntu:22.04
|
|
| 3 |
# Set non-interactive frontend to avoid prompts
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
-
# Install OpenShot and dependencies
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
openshot-qt \
|
| 9 |
python3-pyqt5 \
|
|
@@ -12,6 +12,24 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
libxrender1 \
|
| 13 |
libgl1-mesa-glx \
|
| 14 |
libpulse0 \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
# Create a non-root user and set up home directory
|
|
@@ -28,11 +46,8 @@ ENV HOME=/home/openshotuser
|
|
| 28 |
RUN mkdir -p /home/openshotuser/.openshot_qt && \
|
| 29 |
chmod -R 755 /home/openshotuser/.openshot_qt
|
| 30 |
|
| 31 |
-
# Set display environment variable for GUI
|
| 32 |
-
ENV DISPLAY=:0
|
| 33 |
-
|
| 34 |
# Ensure Python can find OpenShot modules
|
| 35 |
ENV PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/dist-packages/openshot_qt
|
| 36 |
|
| 37 |
-
# Run OpenShot
|
| 38 |
-
CMD ["openshot-qt"]
|
|
|
|
| 3 |
# Set non-interactive frontend to avoid prompts
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
+
# Install OpenShot and dependencies, including XCB libs and Xvfb
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
openshot-qt \
|
| 9 |
python3-pyqt5 \
|
|
|
|
| 12 |
libxrender1 \
|
| 13 |
libgl1-mesa-glx \
|
| 14 |
libpulse0 \
|
| 15 |
+
xvfb \
|
| 16 |
+
libx11-xcb1 \
|
| 17 |
+
libxcb1 \
|
| 18 |
+
libxcomposite1 \
|
| 19 |
+
libxcursor1 \
|
| 20 |
+
libxdamage1 \
|
| 21 |
+
libxext6 \
|
| 22 |
+
libxfixes3 \
|
| 23 |
+
libxi6 \
|
| 24 |
+
libxrandr2 \
|
| 25 |
+
libxss1 \
|
| 26 |
+
libxtst6 \
|
| 27 |
+
libxcb-xinerama0 \
|
| 28 |
+
libxcb-xinput0 \
|
| 29 |
+
libxcb-keysyms1 \
|
| 30 |
+
libxcb-cursor0 \
|
| 31 |
+
libxcb-util1 \
|
| 32 |
+
libxkbcommon-x11-0 \
|
| 33 |
&& rm -rf /var/lib/apt/lists/*
|
| 34 |
|
| 35 |
# Create a non-root user and set up home directory
|
|
|
|
| 46 |
RUN mkdir -p /home/openshotuser/.openshot_qt && \
|
| 47 |
chmod -R 755 /home/openshotuser/.openshot_qt
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
# Ensure Python can find OpenShot modules
|
| 50 |
ENV PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/dist-packages/openshot_qt
|
| 51 |
|
| 52 |
+
# Run OpenShot with Xvfb for headless virtual display
|
| 53 |
+
CMD ["xvfb-run", "-a", "openshot-qt"]
|