aliroohan179 commited on
Commit
9139f39
·
verified ·
1 Parent(s): 3d50cb4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -13
Dockerfile CHANGED
@@ -1,21 +1,19 @@
1
  FROM ubuntu:22.04
2
 
3
- # Set environment to avoid prompts
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
- # Install system dependencies
7
  RUN apt update && apt install -y \
8
- git \
9
- git-lfs \
10
  build-essential \
11
  cmake \
 
 
12
  curl \
13
  wget \
14
  python3 \
15
  python3-pip \
16
- ca-certificates \
17
- libcurl4-openssl-dev \
18
- libssl-dev
19
 
20
  # Initialize Git LFS
21
  RUN git lfs install
@@ -26,12 +24,13 @@ RUN git clone https://github.com/ggerganov/llama.cpp.git
26
 
27
  # Build llama-server using CMake
28
  WORKDIR /app/llama.cpp
29
- RUN mkdir build && cd build && \
30
- cmake -DLLAMA_SERVER=ON .. && \
31
- cmake --build . --config Release
 
32
 
33
- # Expose default llama-server port
34
  EXPOSE 8080
35
 
36
- # Run the server using HF model download
37
- CMD ["./build/bin/server", "-m", "ggml-org/SmolVLM-500M-Instruct-GGUF", "-hf"]
 
1
  FROM ubuntu:22.04
2
 
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
+ # Install dependencies
6
  RUN apt update && apt install -y \
 
 
7
  build-essential \
8
  cmake \
9
+ git \
10
+ git-lfs \
11
  curl \
12
  wget \
13
  python3 \
14
  python3-pip \
15
+ libssl-dev \
16
+ libcurl4-openssl-dev
 
17
 
18
  # Initialize Git LFS
19
  RUN git lfs install
 
24
 
25
  # Build llama-server using CMake
26
  WORKDIR /app/llama.cpp
27
+ RUN mkdir build
28
+ WORKDIR /app/llama.cpp/build
29
+ RUN cmake .. -DLLAMA_SERVER=ON
30
+ RUN cmake --build . --config Release
31
 
32
+ # Expose server port
33
  EXPOSE 8080
34
 
35
+ # Run server (correct binary path!)
36
+ CMD ["./server", "-m", "ggml-org/SmolVLM-500M-Instruct-GGUF", "-hf"]