ar08 commited on
Commit
3cc53ec
·
verified ·
1 Parent(s): 0d44c5c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -14,14 +14,14 @@ WORKDIR /app
14
  COPY . /app
15
 
16
  # Install any needed packages specified in requirements.txt
17
- RUN pip install --no-cache-dir fastapi uvicorn llama-cpp-python pydantic
18
 
19
  # Download the model using Hugging Face CLI
20
- RUN pip install --no-cache-dir huggingface_hub \
21
  && huggingface-cli download microsoft/Phi-3-mini-4k-instruct-gguf Phi-3-mini-4k-instruct-q4.gguf --local-dir . --local-dir-use-symlinks False
22
 
23
  # Make port 8000 available to the world outside this container
24
  EXPOSE 8000
25
 
26
  # Run the server
27
- CMD ["uvicorn", "app", "--host", "0.0.0.0", "--port", "7860"]
 
14
  COPY . /app
15
 
16
  # Install any needed packages specified in requirements.txt
17
+ RUN pip install fastapi uvicorn llama-cpp-python pydantic
18
 
19
  # Download the model using Hugging Face CLI
20
+ RUN pip install huggingface_hub \
21
  && huggingface-cli download microsoft/Phi-3-mini-4k-instruct-gguf Phi-3-mini-4k-instruct-q4.gguf --local-dir . --local-dir-use-symlinks False
22
 
23
  # Make port 8000 available to the world outside this container
24
  EXPOSE 8000
25
 
26
  # Run the server
27
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]