MilanM commited on
Commit
ff60b50
·
verified ·
1 Parent(s): 6d98b17

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,7 +1,8 @@
1
- FROM python:3.9-slim
 
2
 
3
  WORKDIR /app
4
-
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
@@ -12,7 +13,7 @@ RUN apt-get update && apt-get install -y \
12
  COPY requirements.txt ./
13
  COPY src/ ./src/
14
 
15
- RUN pip3 install -r requirements.txt
16
 
17
  EXPOSE 8501
18
 
 
1
+ FROM python:3.12
2
+ COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
3
 
4
  WORKDIR /app
5
+ ENV UV_SYSTEM_PYTHON=1
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
 
13
  COPY requirements.txt ./
14
  COPY src/ ./src/
15
 
16
+ RUN uv pip install -r requirements.txt
17
 
18
  EXPOSE 8501
19