Skip to content

Commit ee19d01

Browse files
committed
Switch to uv for python package installation
1 parent 4251c96 commit ee19d01

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

web-apps/chat/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# FROM python:3.11-slim
21
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
32

43
ARG DIR=chat
54

65
COPY $DIR/requirements.txt requirements.txt
76
RUN sed -i s$../utils$./utils$ requirements.txt
87
COPY utils utils
9-
# RUN pip install --no-cache-dir -r requirements.txt
108
RUN uv pip install --system --no-cache-dir -r requirements.txt
119

1210
COPY purge-google-fonts.sh purge-google-fonts.sh

web-apps/flux-image-gen/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11
1+
FROM ghcr.io/astral-sh/uv:python3.11-bookworm
22

33
# https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo
44
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
@@ -7,7 +7,7 @@ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
77
ARG DIR=flux-image-gen
88

99
COPY $DIR/requirements.txt requirements.txt
10-
RUN pip install --no-cache-dir -r requirements.txt
10+
RUN uv pip install --system --no-cache-dir -r requirements.txt
1111

1212
COPY purge-google-fonts.sh .
1313
RUN bash purge-google-fonts.sh

web-apps/image-analysis/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
FROM python:3.11-slim
1+
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
22

33
ARG DIR=image-analysis
44

55
COPY $DIR/requirements.txt requirements.txt
6+
RUN sed -i s$../utils$./utils$ requirements.txt
67
COPY utils utils
7-
RUN pip install --no-cache-dir -r requirements.txt
8+
RUN uv pip install --system --no-cache-dir -r requirements.txt
89

910
COPY purge-google-fonts.sh purge-google-fonts.sh
1011
RUN bash purge-google-fonts.sh

0 commit comments

Comments
 (0)