Skip to content

Commit a540fd1

Browse files
author
thr3a
committed
update: uv conf
1 parent 2ca0b17 commit a540fd1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cuda12.4-torch/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ENV TZ=Asia/Tokyo
88
ENV PYTHONUNBUFFERED=1
99
ENV PIP_NO_CACHE_DIR=on
1010
ENV PYTHONDONTWRITEBYTECODE=1
11+
ENV UV_PROJECT_ENVIRONMENT="/usr/local/"
1112

1213
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv f23c5a6cf475977595c89f51ba6932366a755776 \
1314
&& echo "deb http://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy main" > /etc/apt/sources.list.d/python.list \

cuda12.4-torch/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Dockerfile
3030
FROM ghcr.io/thr3a/cuda12.4-torch:latest
3131

3232
WORKDIR /app
33-
COPY ./requirements.txt ./
34-
RUN pip install -r requirements.txt
33+
# COPY ./requirements.txt ./
34+
# RUN pip install -r requirements.txt
35+
36+
COPY pyproject.toml ./
37+
COPY uv.lock ./
38+
RUN uv sync --frozen --no-cache
3539
```

0 commit comments

Comments
 (0)