srivatsavdamaraju commited on
Commit
a54cc5c
·
verified ·
1 Parent(s): 69dd5a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -13
Dockerfile CHANGED
@@ -1,31 +1,23 @@
1
  FROM ubuntu:22.04
2
 
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
- git \
6
- cmake \
7
- build-essential \
8
  curl \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  # Set working directory
12
  WORKDIR /app
13
 
14
- # Copy llama.cpp source code into container
15
- COPY . /app
16
-
17
- # Build llama-server from source
18
- RUN mkdir -p build && cd build && \
19
- cmake .. && \
20
- cmake --build . --target llama-server
21
 
22
  # Set environment variable
23
  ENV LLAMA_CPP_PATH=/app/build
24
 
25
- # Expose port (optional)
26
  EXPOSE 8080
27
 
28
- # Run the server
29
  CMD ["/bin/bash", "-c", "\
30
  if [ -x \"$LLAMA_CPP_PATH/bin/llama-server\" ]; then \
31
  echo OK && \
 
1
  FROM ubuntu:22.04
2
 
3
+ # Install only runtime dependencies (no build tools needed)
4
  RUN apt-get update && apt-get install -y \
 
 
 
5
  curl \
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
  # Set working directory
9
  WORKDIR /app
10
 
11
+ # Copy ONLY the built files
12
+ COPY build /app/build
 
 
 
 
 
13
 
14
  # Set environment variable
15
  ENV LLAMA_CPP_PATH=/app/build
16
 
17
+ # Expose port if needed (optional)
18
  EXPOSE 8080
19
 
20
+ # Run llama-server
21
  CMD ["/bin/bash", "-c", "\
22
  if [ -x \"$LLAMA_CPP_PATH/bin/llama-server\" ]; then \
23
  echo OK && \