rajsinghparihar commited on
Commit
8565842
1 Parent(s): 88f70a5

updated dockerfile and readme.md

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -2
  2. README.md +1 -0
Dockerfile CHANGED
@@ -17,7 +17,10 @@ RUN wget https://huggingface.co/jartine/Phi-3-mini-4k-instruct-llamafile/resolve
17
  # Set the permissions on the Llamafile to be executable
18
  RUN chmod +x ./Phi-3-mini-4k-instruct.Q4_K_M.llamafile
19
 
20
- EXPOSE 7860
 
 
 
21
 
22
  # Set the entrypoint to run the Llamafile
23
- ENTRYPOINT ["bash", "./Phi-3-mini-4k-instruct.Q4_K_M.llamafile", "--host", "0.0.0.0", "--port", "7860", "--nobrowser"]
 
17
  # Set the permissions on the Llamafile to be executable
18
  RUN chmod +x ./Phi-3-mini-4k-instruct.Q4_K_M.llamafile
19
 
20
+ RUN apt install adduser -y
21
+ RUN addgroup --gid 1000 user
22
+ RUN adduser --uid 1000 --gid 1000 --disabled-password --gecos "" user
23
+ USER user
24
 
25
  # Set the entrypoint to run the Llamafile
26
+ ENTRYPOINT ["bash", "./Phi-3-mini-4k-instruct.Q4_K_M.llamafile", "--host", "0.0.0.0"]
README.md CHANGED
@@ -6,6 +6,7 @@ colorTo: yellow
6
  sdk: docker
7
  pinned: false
8
  license: apache-2.0
 
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
6
  sdk: docker
7
  pinned: false
8
  license: apache-2.0
9
+ app_port: 8080
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference