samithcs commited on
Commit
f4300c9
·
verified ·
1 Parent(s): d7b5728

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -2
Dockerfile CHANGED
@@ -8,10 +8,21 @@ RUN apt-get update && apt-get install -y \
8
  git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- COPY requirements.txt ./
 
 
 
 
 
 
 
 
 
 
 
12
  COPY src/ ./src/
13
 
14
- RUN pip3 install -r requirements.txt
15
 
16
  EXPOSE 8501
17
 
 
8
  git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Install uv
12
+ RUN curl -LsSf https://astral.sh/uv/install.sh | sh
13
+
14
+ # Make uv available in PATH
15
+ ENV PATH="/root/.local/bin:$PATH"
16
+
17
+ COPY pyproject.toml uv.lock ./
18
+
19
+ # Install dependencies using uv with lock file
20
+ RUN uv sync
21
+
22
+ #COPY requirements.txt ./
23
  COPY src/ ./src/
24
 
25
+ #RUN pip3 install -r requirements.txt
26
 
27
  EXPOSE 8501
28