aliroohan179 commited on
Commit
3312e6e
·
verified ·
1 Parent(s): 2635614

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ # Set non-interactive mode for apt
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # Install system dependencies
7
+ RUN apt update && apt install -y \
8
+ build-essential \
9
+ cmake \
10
+ git \
11
+ curl \
12
+ python3 \
13
+ python3-pip \
14
+ git-lfs \
15
+ ca-certificates \
16
+ wget \
17
+ && git lfs install
18
+
19
+ # Clone llama.cpp
20
+ WORKDIR /app
21
+ RUN git clone https://github.com/ggerganov/llama.cpp.git
22
+ WORKDIR /app/llama.cpp
23
+
24
+ # Build llama-server
25
+ RUN make server LLAMA_SERVER_BUILD=1
26
+
27
+ # Expose the default llama-server port
28
+ EXPOSE 8080
29
+
30
+ # Run llama-server and download model from Hugging Face
31
+ CMD ["./server", "-m", "ggml-org/SmolVLM-500M-Instruct-GGUF", "-hf"]