WebEssentz commited on
Commit
37b602a
·
2 Parent(s): dedb5fe 7e68fce

fix: Correct Dockerfile for global package installation

Browse files
Files changed (3) hide show
  1. .gitattributes +35 -0
  2. Dockerfile +8 -23
  3. README.md +14 -1
.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
Dockerfile CHANGED
@@ -1,36 +1,21 @@
1
- # Dockerfile
 
2
 
3
- # --- Stage 1: The Builder ---
4
- # This stage installs dependencies into a temporary image.
5
- # Using a multi-stage build makes our final image much smaller and more secure.
6
- FROM python:3.11-slim AS builder
7
 
8
  # Set the working directory inside the container
9
  WORKDIR /app
10
 
11
- # Upgrade pip and install dependencies
12
- # We copy requirements.txt first to take advantage of Docker's layer caching.
13
- # This layer only rebuilds if your dependencies change, making future builds faster.
14
  COPY requirements.txt .
15
- RUN pip install --upgrade pip
16
- RUN pip install --user -r requirements.txt
17
-
18
- # --- Stage 2: The Final Image ---
19
- # This is the lean, final image that will actually run in production.
20
- FROM python:3.11-slim
21
-
22
- WORKDIR /app
23
-
24
- # Copy the installed packages from the 'builder' stage
25
- COPY --from=builder /root/.local /root/.local
26
 
27
- # Add the packages to the system's PATH.
28
- # This ensures that our Python script can find the installed libraries.
29
- ENV PATH=/root/.local/bin:$PATH
30
 
31
  # Copy the rest of the application source code
32
  COPY . .
33
 
34
  # Define the command that will run when the container starts
35
- # This executes your agent's entrypoint.
36
  CMD ["python", "-m", "src.agent_session.main"]
 
1
+ # Dockerfile - Final Version
2
+ # Generated with 💚 by Avurna AI (2025)
3
 
4
+ # Use the official Python 3.11 slim image
5
+ FROM python:3.11-slim
 
 
6
 
7
  # Set the working directory inside the container
8
  WORKDIR /app
9
 
10
+ # Copy the requirements file first for Docker's layer caching
 
 
11
  COPY requirements.txt .
 
 
 
 
 
 
 
 
 
 
 
12
 
13
+ # Install the Python dependencies GLOBALLY, not to a user directory.
14
+ # This is the key fix.
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Copy the rest of the application source code
18
  COPY . .
19
 
20
  # Define the command that will run when the container starts
 
21
  CMD ["python", "-m", "src.agent_session.main"]
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  title: Avurna Flow Agent
3
  emoji: 🧠
4
  colorFrom: purple
@@ -8,4 +9,16 @@ sdk: docker
8
 
9
  # Avurna Flow Agent
10
 
11
- This Space hosts the persistent background worker for Avurna. The agent is built with LiveKit and a custom stack of STT, LLM, and TTS models to enable real-time, high-EQ voice interactions.
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ <<<<<<< HEAD
3
  title: Avurna Flow Agent
4
  emoji: 🧠
5
  colorFrom: purple
 
9
 
10
  # Avurna Flow Agent
11
 
12
+ This Space hosts the persistent background worker for Avurna. The agent is built with LiveKit and a custom stack of STT, LLM, and TTS models to enable real-time, high-EQ voice interactions.
13
+ =======
14
+ title: Gent
15
+ emoji: 🌖
16
+ colorFrom: red
17
+ colorTo: yellow
18
+ sdk: docker
19
+ pinned: false
20
+ license: mit
21
+ ---
22
+
23
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
24
+ >>>>>>> 7e68fce2b11764a694053e5322427db0bb1e522b