Update Dockerfile
Browse files- 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
|
| 18 |
|
| 19 |
# Download the model using Hugging Face CLI
|
| 20 |
-
RUN pip install
|
| 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"]
|