File size: 1,244 Bytes
62558a4
 
 
 
74b8ad8
 
 
62558a4
 
 
 
47da1b6
74b8ad8
62558a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aec0167
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.12-slim-bookworm

WORKDIR /app

# Redundant command to invalidate cache
RUN echo "Invalidate the cache"

# Update package index and install necessary tools, including curl
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    build-essential \
    git \
    cmake \
    curl && \
    rm -rf /var/lib/apt/lists/*

# # Download the model
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

# Install build tools required for llama-cpp-python
RUN apt-get update && apt-get install -y build-essential

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Redundant command to invalidate cache
RUN echo "Invalidate the cache"

# Copy the application code
COPY . .

# Expose the port that Streamlit will run on
# EXPOSE 8501
EXPOSE 7860

# Define the entrypoint to run the Streamlit application
# ENTRYPOINT ["streamlit", "run", "🤖SQL_Agent.py", "--server.port=8501", "--server.address=0.0.0.0"]
ENTRYPOINT ["streamlit", "run", "🤖SQL_Agent.py", "--server.port=7860", "--server.address=0.0.0.0"]