thng292 commited on
Commit
3d18341
·
1 Parent(s): f43f741

I tried it all, f you

Browse files
Files changed (4) hide show
  1. .dockerignore +2 -0
  2. Dockerfile +1 -5
  3. pyproject.toml +14 -2
  4. uv.lock +0 -0
.dockerignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ **/.venv
2
+ **/uv.lock
Dockerfile CHANGED
@@ -2,15 +2,11 @@ FROM python:3.13
2
 
3
  COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
4
 
5
- RUN apt-get update && \
6
- apt-get install -y --no-install-recommends gcc g++ cmake && \
7
- rm -rf /var/lib/apt/lists/*
8
-
9
  WORKDIR /app
10
 
11
  COPY . .
12
 
13
- RUN uv sync --frozen --package big-data-application
14
 
15
  EXPOSE 7860
16
 
 
2
 
3
  COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
4
 
 
 
 
 
5
  WORKDIR /app
6
 
7
  COPY . .
8
 
9
+ RUN uv sync --package big-data-application
10
 
11
  EXPOSE 7860
12
 
pyproject.toml CHANGED
@@ -8,7 +8,6 @@ requires-python = ">=3.13"
8
  dependencies = [
9
  "gradio>=6.12.0",
10
  "huggingface-hub>=1.11.0",
11
- "ipykernel>=7.2.0",
12
  "llama-cpp-python>=0.3.19",
13
  "llama-index>=0.14.20",
14
  "llama-index-embeddings-huggingface>=0.7.0",
@@ -25,4 +24,17 @@ requires = ["uv_build>=0.10.4,<0.11.0"]
25
  build-backend = "uv_build"
26
 
27
  [tool.uv.workspace]
28
- members = ["packages/*"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  dependencies = [
9
  "gradio>=6.12.0",
10
  "huggingface-hub>=1.11.0",
 
11
  "llama-cpp-python>=0.3.19",
12
  "llama-index>=0.14.20",
13
  "llama-index-embeddings-huggingface>=0.7.0",
 
24
  build-backend = "uv_build"
25
 
26
  [tool.uv.workspace]
27
+ # members = ["packages/*"]
28
+ exclude = ["packages/*"]
29
+
30
+ [[tool.uv.index]]
31
+ url = "https://abetlen.github.io/llama-cpp-python/whl/cpu"
32
+
33
+ [[tool.uv.index]]
34
+ name = "pytorch-cpu"
35
+ url = "https://download.pytorch.org/whl/cpu"
36
+ explicit = true
37
+
38
+ [tool.uv.sources]
39
+ torch = [{ index = "pytorch-cpu" }]
40
+ torchvision = [{ index = "pytorch-cpu" }]
uv.lock DELETED
The diff for this file is too large to render. See raw diff