shamik
commited on
feat: using cache for uv.
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -31,7 +31,10 @@ RUN sh /uv-installer.sh && rm /uv-installer.sh
|
|
31 |
# Ensure the installed binary is on the `PATH`
|
32 |
ENV PATH="/root/.local/bin/:$PATH"
|
33 |
|
34 |
-
|
|
|
|
|
|
|
35 |
|
36 |
RUN uv run huggingface-cli download Shamik/arxiv_cs_2020_07_2025 --repo-type dataset --local-dir app/db
|
37 |
RUN ls app/db
|
|
|
31 |
# Ensure the installed binary is on the `PATH`
|
32 |
ENV PATH="/root/.local/bin/:$PATH"
|
33 |
|
34 |
+
ENV UV_LINK_MODE=copy
|
35 |
+
|
36 |
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
37 |
+
uv sync
|
38 |
|
39 |
RUN uv run huggingface-cli download Shamik/arxiv_cs_2020_07_2025 --repo-type dataset --local-dir app/db
|
40 |
RUN ls app/db
|