Spaces:
Paused
Paused
Update Dockerfile
Browse files- 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 |
-
|
31 |
-
|
32 |
-
|
33 |
-
#
|
34 |
-
|
35 |
-
#
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
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"]
|