Spaces:
Sleeping
Sleeping
rajsinghparihar
commited on
Commit
·
bf1977b
1
Parent(s):
29ea23a
add dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Python image as the base image
|
2 |
+
FROM ubuntu:22.04
|
3 |
+
|
4 |
+
# Set the working directory to /app
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Install the necessary dependencies
|
8 |
+
RUN apt-get update && apt-get install -y \
|
9 |
+
curl \
|
10 |
+
&& rm -rf /var/lib/apt/lists/*
|
11 |
+
|
12 |
+
# Download the Llamafile
|
13 |
+
RUN curl -L -o model.llamafile https://huggingface.co/jartine/Phi-3-mini-4k-instruct-llamafile/resolve/main/Phi-3-mini-4k-instruct.Q4_K_M.llamafile
|
14 |
+
|
15 |
+
# Set the permissions on the Llamafile to be executable
|
16 |
+
RUN chmod +x model.llamafile
|
17 |
+
|
18 |
+
EXPOSE 7860
|
19 |
+
|
20 |
+
# Set the entrypoint to run the Llamafile
|
21 |
+
ENTRYPOINT ["./model.llamafile --host 0.0.0.0 --port 7860 --nobrowser"]
|