Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -27,6 +27,8 @@ 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 |
RUN useradd -m -u 1000 user
|
31 |
# Switch to the "user" user
|
32 |
USER user
|
@@ -46,6 +48,7 @@ WORKDIR $HOME/app
|
|
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 |
# CMD ["python", "app.py"]
|
50 |
|
51 |
CMD [ "python", "-m" , "flask", "run", "--host=0.0.0.0"]
|
|
|
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
|
|
|
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 ["python", "app.py"]
|
53 |
|
54 |
CMD [ "python", "-m" , "flask", "run", "--host=0.0.0.0"]
|