Spaces:
Sleeping

amitd007 commited on
Commit
ddcb5af
·
verified ·
1 Parent(s): 437a798

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,17 +1,17 @@
1
- # Base Image: The environment starting point (Updated to 3.12)
2
  FROM python:3.12-slim
3
 
4
- # Install system dependencies needed to compile llama-cpp
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  python3-dev \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # Install Python packages
11
  RUN pip install --no-cache-dir llama-cpp-python flask
12
 
13
  WORKDIR /app
14
  COPY . .
15
 
16
- # Command to start your application
17
  CMD ["python", "app.py"]
 
1
+ # Use Python 3.12 as the base image
2
  FROM python:3.12-slim
3
 
4
+ # Install system dependencies
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  python3-dev \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Install the necessary runner and web server
11
  RUN pip install --no-cache-dir llama-cpp-python flask
12
 
13
  WORKDIR /app
14
  COPY . .
15
 
16
+ # Start the app
17
  CMD ["python", "app.py"]