Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +9 -6
Dockerfile
CHANGED
@@ -29,10 +29,7 @@ RUN apt install -y bash \
|
|
29 |
rm -rf /var/lib/apt/lists
|
30 |
|
31 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
32 |
-
RUN
|
33 |
-
cd q8_kernels && git submodule init && git submodule update && \
|
34 |
-
python3 setup.py install
|
35 |
-
|
36 |
|
37 |
# Set up a new user named "user" with user ID 1000
|
38 |
RUN useradd -m -u 1000 user
|
@@ -50,5 +47,11 @@ WORKDIR $HOME/app
|
|
50 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
51 |
COPY --chown=user . $HOME/app
|
52 |
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
rm -rf /var/lib/apt/lists
|
30 |
|
31 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
32 |
+
RUN pip install q8_kernels-0.0.0-cp39-cp39-linux_x86_64.whl
|
|
|
|
|
|
|
33 |
|
34 |
# Set up a new user named "user" with user ID 1000
|
35 |
RUN useradd -m -u 1000 user
|
|
|
47 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
48 |
COPY --chown=user . $HOME/app
|
49 |
|
50 |
+
ENV PYTHONUNBUFFERED=1 \
|
51 |
+
GRADIO_ALLOW_FLAGGING=never \
|
52 |
+
GRADIO_NUM_PORTS=1 \
|
53 |
+
GRADIO_SERVER_NAME=0.0.0.0 \
|
54 |
+
GRADIO_THEME=huggingface \
|
55 |
+
SYSTEM=spaces
|
56 |
+
|
57 |
+
CMD ["python3", "app.py"]
|