dkdaniz commited on
Commit
55574b3
1 Parent(s): 2c3245b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -20
Dockerfile CHANGED
@@ -27,26 +27,24 @@ RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
27
  RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 PIP_ROOT_USER_ACTION=ignore pip install --ignore-installed --timeout 100 -r requirements.txt
28
  RUN pip install uvicorn
29
 
30
- EXPOSE 5110
31
-
32
- RUN useradd -m -u 1000 user
33
- # Switch to the "user" user
34
- USER user
35
- # Set home to the user's home directory
36
- ENV HOME=/home/user \
37
- PATH=/home/user/.local/bin:$PATH \
38
- PYTHONPATH=$HOME/app \
39
- PYTHONUNBUFFERED=1 \
40
- GRADIO_ALLOW_FLAGGING=never \
41
- GRADIO_NUM_PORTS=1 \
42
- GRADIO_SERVER_NAME=0.0.0.0 \
43
- GRADIO_THEME=huggingface \
44
- SYSTEM=spaces
45
-
46
- WORKDIR $HOME/app
47
-
48
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
49
- COPY --chown=user . $HOME/app
50
 
51
 
52
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
27
  RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 PIP_ROOT_USER_ACTION=ignore pip install --ignore-installed --timeout 100 -r requirements.txt
28
  RUN pip install uvicorn
29
 
30
+ # RUN useradd -m -u 1000 user
31
+ # # Switch to the "user" user
32
+ # USER user
33
+ # # Set home to the user's home directory
34
+ # ENV HOME=/home/user \
35
+ # PATH=/home/user/.local/bin:$PATH \
36
+ # PYTHONPATH=$HOME/app \
37
+ # PYTHONUNBUFFERED=1 \
38
+ # GRADIO_ALLOW_FLAGGING=never \
39
+ # GRADIO_NUM_PORTS=1 \
40
+ # GRADIO_SERVER_NAME=0.0.0.0 \
41
+ # GRADIO_THEME=huggingface \
42
+ # SYSTEM=spaces
43
+
44
+ # WORKDIR $HOME/app
45
+
46
+ # # Copy the current directory contents into the container at $HOME/app setting the owner to the user
47
+ # COPY --chown=user . $HOME/app
 
 
48
 
49
 
50
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]