Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 &&
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
#
|
|
|
|
|
|
|
|
|
|
|
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"]
|