Skip to content

Commit 3134fdd

Browse files
Update Dockerfile and README (#25)
- Add UV_INDEX_URL and UV_EXTRA_INDEX_URL - Modify pip install command for requirements - Add buildx commands for multi-platform builds Co-authored-by: Haihui.Wang <wanghh2000@163.com>
1 parent 9b0c738 commit 3134fdd

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ RUN apt install git-lfs && git lfs install && apt clean && rm -rf /var/lib/apt/l
2727
COPY . .
2828

2929
ENV PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/
30+
ENV UV_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/
31+
ENV UV_EXTRA_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/
32+
3033
# Install deps
31-
RUN pip install --no-cache-dir --use-deprecated=legacy-resolver -r docker/dataflow_requirements.txt
34+
# RUN pip install --no-cache-dir --use-deprecated=legacy-resolver -r docker/dataflow_requirements.txt
35+
RUN pip install --no-cache-dir -r docker/dataflow_requirements.txt
36+
3237
# compile code
3338
# RUN python -m compileall .
3439
# RUN find ./ -name "*.py" -delete

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ This project inherits the [Apache License 2.0](LICENSE) from Data Juicer.
3232

3333
```
3434
docker build -t dataflow . -f Dockerfile
35+
36+
docker buildx build --provenance false --platform linux/amd64 -t dataflow . -f Dockerfile
37+
38+
docker buildx build --provenance false --platform linux/arm64 -t dataflow . -f Dockerfile
3539
```
3640

3741
## Prerequisites

0 commit comments

Comments
 (0)