Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -54,7 +54,7 @@ USER user
|
|
| 54 |
|
| 55 |
# All users can use /home/user as their home directory
|
| 56 |
ENV HOME=/home/user
|
| 57 |
-
ENV DISPLAY=127.0.0.1:
|
| 58 |
RUN mkdir $HOME/.cache $HOME/.config \
|
| 59 |
&& chmod -R 777 $HOME
|
| 60 |
|
|
@@ -106,7 +106,7 @@ RUN chown -R user:user /app && chmod +x /app/start.sh && mkdir -p /app/logs && c
|
|
| 106 |
#######################################
|
| 107 |
|
| 108 |
USER user
|
| 109 |
-
|
| 110 |
# Python packages
|
| 111 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 112 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
|
@@ -126,7 +126,7 @@ ENV PYTHONUNBUFFERED=1 \
|
|
| 126 |
GRADIO_THEME=huggingface \
|
| 127 |
SYSTEM=spaces \
|
| 128 |
SHELL=/bin/bash \
|
| 129 |
-
DISPLAY=127.0.0.1:
|
| 130 |
|
| 131 |
# Install FoxDot Quark (needs to be done as the user)
|
| 132 |
# We run Xvfb momentarily just in case sclang needs a display (usually doesn't for CLI, but safe)
|
|
|
|
| 54 |
|
| 55 |
# All users can use /home/user as their home directory
|
| 56 |
ENV HOME=/home/user
|
| 57 |
+
ENV DISPLAY=127.0.0.1:99
|
| 58 |
RUN mkdir $HOME/.cache $HOME/.config \
|
| 59 |
&& chmod -R 777 $HOME
|
| 60 |
|
|
|
|
| 106 |
#######################################
|
| 107 |
|
| 108 |
USER user
|
| 109 |
+
RUN xhost +local:root
|
| 110 |
# Python packages
|
| 111 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 112 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
| 126 |
GRADIO_THEME=huggingface \
|
| 127 |
SYSTEM=spaces \
|
| 128 |
SHELL=/bin/bash \
|
| 129 |
+
DISPLAY=127.0.0.1:99
|
| 130 |
|
| 131 |
# Install FoxDot Quark (needs to be done as the user)
|
| 132 |
# We run Xvfb momentarily just in case sclang needs a display (usually doesn't for CLI, but safe)
|