srivatsavdamaraju commited on
Commit
5087b11
·
verified ·
1 Parent(s): a54cc5c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -13
Dockerfile CHANGED
@@ -1,24 +1,14 @@
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 && \
24
  $LLAMA_CPP_PATH/bin/llama-server -hf ggml-org/SmolVLM-500M-Instruct-GGUF; \
 
1
  FROM ubuntu:22.04
2
 
3
+ RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
 
 
 
4
 
 
5
  WORKDIR /app
 
 
6
  COPY build /app/build
 
 
7
  ENV LLAMA_CPP_PATH=/app/build
8
 
 
 
 
 
9
  CMD ["/bin/bash", "-c", "\
10
+ echo 'Listing $LLAMA_CPP_PATH/bin:' && \
11
+ ls -l $LLAMA_CPP_PATH/bin && \
12
  if [ -x \"$LLAMA_CPP_PATH/bin/llama-server\" ]; then \
13
  echo OK && \
14
  $LLAMA_CPP_PATH/bin/llama-server -hf ggml-org/SmolVLM-500M-Instruct-GGUF; \