Skip to content

Commit b0a072c

Browse files
committed
Fix supervisord configuration to run as root
1 parent 1da04b2 commit b0a072c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Dockerfile.novnc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,11 @@ RUN echo '# PyPTV with noVNC\n\nThis Docker container provides PyPTV with a grap
101101
# Set permissions
102102
RUN chown -R pyptv:pyptv /home/pyptv
103103

104-
# Switch to non-root user for better security
105-
USER pyptv
104+
# Set working directory
106105
WORKDIR /home/pyptv/work
107106

108107
# Expose ports
109108
EXPOSE $VNC_PORT $NOVNC_PORT
110109

111-
# Start supervisord
110+
# Start supervisord as root (required for some services)
112111
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

docker/supervisord.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[supervisord]
22
nodaemon=true
3-
user=root
43

54
[program:xvfb]
65
command=/usr/bin/Xvfb :1 -screen 0 %(ENV_RESOLUTION)s -ac +extension GLX +render -noreset

0 commit comments

Comments
 (0)