shoom013 commited on
Commit
6b4347f
·
verified ·
1 Parent(s): a85db12

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -50,9 +50,11 @@ WORKDIR /app
50
 
51
  # Create a non-root user and switch to it
52
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
53
- && chown -R user:user /app
54
  RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
55
- RUN mkdir /data && chown user:user /data
 
 
56
 
57
  USER user
58
 
@@ -130,7 +132,8 @@ ENV PYTHONUNBUFFERED=1 \
130
  GRADIO_THEME=huggingface \
131
  SYSTEM=spaces \
132
  SHELL=/bin/bash \
133
- DISPLAY=127.0.0.1:99
 
134
 
135
  # Install FoxDot Quark (needs to be done as the user)
136
  # We run Xvfb momentarily just in case sclang needs a display (usually doesn't for CLI, but safe)
 
50
 
51
  # Create a non-root user and switch to it
52
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
53
+ && chown -R user:audio /app && usermod -aG audio
54
  RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
55
+ RUN echo "@audio - rtprio 95" > /etc/security/limits.d/90-user
56
+ RUN echo "@audio - memlock unlimited" >> /etc/security/limits.d/90-user
57
+ RUN mkdir /data && chown user:audio /data
58
 
59
  USER user
60
 
 
132
  GRADIO_THEME=huggingface \
133
  SYSTEM=spaces \
134
  SHELL=/bin/bash \
135
+ DISPLAY=127.0.0.1:99 \
136
+ XDG_RUNTIME_DIR = /data
137
 
138
  # Install FoxDot Quark (needs to be done as the user)
139
  # We run Xvfb momentarily just in case sclang needs a display (usually doesn't for CLI, but safe)