akhil-vaidya commited on
Commit
07d7f5a
·
verified ·
1 Parent(s): f133a92

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +62 -61
Dockerfile CHANGED
@@ -1,62 +1,63 @@
1
- # # Dockerfile for QualiVec Streamlit Demo
2
-
3
- # # 1. Base Image
4
- # FROM python:3.12-slim
5
-
6
- # # 2. Set the working directory
7
- # WORKDIR /app
8
-
9
- # # 3. Install system dependencies
10
- # RUN apt-get update && apt-get install -y \
11
- # build-essential \
12
- # curl \
13
- # && rm -rf /var/lib/apt/lists/*
14
-
15
- # # 4. Install uv - the fast Python package manager
16
- # RUN pip install --no-cache-dir uv
17
-
18
- # # 5. Copy dependency definition files and README (required for package build)
19
- # COPY pyproject.toml uv.lock README.md ./
20
-
21
- # # 6. Copy source code (needed for package installation)
22
- # COPY src/ ./src/
23
-
24
- # # 7. Install Python dependencies using uv
25
- # # 'uv pip install .' reads pyproject.toml and installs the project dependencies
26
- # RUN uv pip install --system --no-cache-dir .
27
-
28
- # # 8. Copy the rest of the application source code
29
- # # Make sure you have a .dockerignore file to exclude .venv
30
- # COPY . .
31
-
32
- # # 9. Expose the port Streamlit runs on
33
- # EXPOSE 8501
34
-
35
- # # 10. Add a health check to verify the app is running
36
- # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
37
-
38
- # # 11. Define the entry point to use the run_demo.py script via uv
39
- # # ENTRYPOINT ["uv", "run", "app/run_demo.py"]
40
- # ENTRYPOINT ["python", "app/run_demo.py"]
41
-
42
-
43
-
44
- FROM python:3.12-slim
45
-
46
- WORKDIR /app
47
-
48
- RUN apt-get update && apt-get install -y \
49
- build-essential \
50
- curl \
51
- && rm -rf /var/lib/apt/lists/*
52
-
53
- COPY pyproject.toml ./
54
- COPY uv.lock ./
55
-
56
- RUN pip install -e . --break-system-packages
57
-
58
- COPY . .
59
-
60
- WORKDIR /app/app
61
-
 
62
  CMD ["python3", "run_demo.py"]
 
1
+ # # Dockerfile for QualiVec Streamlit Demo
2
+
3
+ # # 1. Base Image
4
+ # FROM python:3.12-slim
5
+
6
+ # # 2. Set the working directory
7
+ # WORKDIR /app
8
+
9
+ # # 3. Install system dependencies
10
+ # RUN apt-get update && apt-get install -y \
11
+ # build-essential \
12
+ # curl \
13
+ # && rm -rf /var/lib/apt/lists/*
14
+
15
+ # # 4. Install uv - the fast Python package manager
16
+ # RUN pip install --no-cache-dir uv
17
+
18
+ # # 5. Copy dependency definition files and README (required for package build)
19
+ # COPY pyproject.toml uv.lock README.md ./
20
+
21
+ # # 6. Copy source code (needed for package installation)
22
+ # COPY src/ ./src/
23
+
24
+ # # 7. Install Python dependencies using uv
25
+ # # 'uv pip install .' reads pyproject.toml and installs the project dependencies
26
+ # RUN uv pip install --system --no-cache-dir .
27
+
28
+ # # 8. Copy the rest of the application source code
29
+ # # Make sure you have a .dockerignore file to exclude .venv
30
+ # COPY . .
31
+
32
+ # # 9. Expose the port Streamlit runs on
33
+ # EXPOSE 8501
34
+
35
+ # # 10. Add a health check to verify the app is running
36
+ # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
37
+
38
+ # # 11. Define the entry point to use the run_demo.py script via uv
39
+ # # ENTRYPOINT ["uv", "run", "app/run_demo.py"]
40
+ # ENTRYPOINT ["python", "app/run_demo.py"]
41
+
42
+
43
+
44
+ FROM python:3.12-slim
45
+
46
+ WORKDIR /app
47
+
48
+ RUN apt-get update && apt-get install -y \
49
+ build-essential \
50
+ curl \
51
+ && rm -rf /var/lib/apt/lists/*
52
+
53
+ COPY pyproject.toml ./
54
+ COPY README.md
55
+ COPY uv.lock ./
56
+
57
+ RUN pip install -e . --break-system-packages
58
+
59
+ COPY . .
60
+
61
+ WORKDIR /app/app
62
+
63
  CMD ["python3", "run_demo.py"]