sayakpaul HF staff commited on
Commit
cc9983b
·
verified ·
1 Parent(s): 9573bae

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 git clone https://github.com/KONAKONA666/q8_kernels && \
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
- # CMD ["/bin/bash"]
54
- CMD ["python3", "app/appy.py"]
 
 
 
 
 
 
 
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"]