DebopamC commited on
Commit
62558a4
·
verified ·
1 Parent(s): 57f440f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +34 -29
Dockerfile CHANGED
@@ -1,30 +1,35 @@
1
- FROM python:3.12-slim-bookworm
2
-
3
- WORKDIR /app
4
-
5
- # Update package index and install necessary tools, including curl
6
- RUN apt-get update && apt-get install -y curl
7
-
8
- # # Download the model
9
- RUN curl -Lo qwen2.5-coder-3b-instruct-q4_k_m.gguf https://huggingface.co/DebopamC/Text-to-SQL__Qwen2.5-Coder-3B-FineTuned/resolve/main/Text-to-SQL-Qwen2.5-Coder-3B-FineTuned.gguf?download=true
10
-
11
- # Install build tools required for llama-cpp-python
12
- RUN apt-get update && apt-get install -y build-essential
13
-
14
- # Copy requirements and install dependencies
15
- COPY requirements.txt .
16
- RUN pip install --no-cache-dir -r requirements.txt
17
-
18
- # Redundant command to invalidate cache
19
- RUN echo "Invalidate the cache"
20
-
21
- # Copy the application code
22
- COPY . .
23
-
24
- # Expose the port that Streamlit will run on
25
- # EXPOSE 8501
26
- EXPOSE 7860
27
-
28
- # Define the entrypoint to run the Streamlit application
29
- # ENTRYPOINT ["streamlit", "run", "🤖SQL_Agent.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
 
 
30
  ENTRYPOINT ["streamlit", "run", "🤖SQL_Agent.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
1
+ FROM python:3.12-slim-bookworm
2
+
3
+ WORKDIR /app
4
+
5
+ # Update package index and install necessary tools, including curl
6
+ RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends \
8
+ build-essential \
9
+ git \ # <-- Add Git here
10
+ curl && \
11
+ rm -rf /var/lib/apt/lists/*
12
+
13
+ # # Download the model
14
+ RUN curl -Lo qwen2.5-coder-3b-instruct-q4_k_m.gguf https://huggingface.co/DebopamC/Text-to-SQL__Qwen2.5-Coder-3B-FineTuned/resolve/main/Text-to-SQL-Qwen2.5-Coder-3B-FineTuned.gguf?download=true
15
+
16
+ # Install build tools required for llama-cpp-python
17
+ RUN apt-get update && apt-get install -y build-essential
18
+
19
+ # Copy requirements and install dependencies
20
+ COPY requirements.txt .
21
+ RUN pip install --no-cache-dir -r requirements.txt
22
+
23
+ # Redundant command to invalidate cache
24
+ RUN echo "Invalidate the cache"
25
+
26
+ # Copy the application code
27
+ COPY . .
28
+
29
+ # Expose the port that Streamlit will run on
30
+ # EXPOSE 8501
31
+ EXPOSE 7860
32
+
33
+ # Define the entrypoint to run the Streamlit application
34
+ # ENTRYPOINT ["streamlit", "run", "🤖SQL_Agent.py", "--server.port=8501", "--server.address=0.0.0.0"]
35
  ENTRYPOINT ["streamlit", "run", "🤖SQL_Agent.py", "--server.port=7860", "--server.address=0.0.0.0"]