Rob McKnight commited on
Commit
b040a50
·
1 Parent(s): 78e79e1

Permissions

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -5
  2. supervisord.conf +1 -0
Dockerfile CHANGED
@@ -33,12 +33,14 @@ COPY --chown=user ./requirements.txt requirements.txt
33
  RUN pip install --break-system-packages -r requirements.txt
34
  COPY --chown=user . /app
35
 
36
- # Set up supervisor
37
- RUN mkdir -p /var/log/supervisor
 
 
 
38
  COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
39
 
40
- # Expose both ports
41
- EXPOSE 4444 7860
42
 
43
  # Start supervisor to manage both processes
44
- CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
 
33
  RUN pip install --break-system-packages -r requirements.txt
34
  COPY --chown=user . /app
35
 
36
+ # Set up supervisor with proper permissions
37
+ RUN mkdir -p /var/log/supervisor && \
38
+ chown -R user:user /var/log/supervisor && \
39
+ mkdir -p /var/run && \
40
+ chown -R user:user /var/run
41
  COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
42
 
43
+ EXPOSE 7860
 
44
 
45
  # Start supervisor to manage both processes
46
+ CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
supervisord.conf CHANGED
@@ -2,6 +2,7 @@
2
  nodaemon=true
3
  logfile=/var/log/supervisor/supervisord.log
4
  loglevel=debug
 
5
 
6
  [program:lsproxy]
7
  command=/lsproxy
 
2
  nodaemon=true
3
  logfile=/var/log/supervisor/supervisord.log
4
  loglevel=debug
5
+ user=user
6
 
7
  [program:lsproxy]
8
  command=/lsproxy