Skip to content

Commit a3e7edf

Browse files
committed
don't do lfs download for docker container build
1 parent 78f9d64 commit a3e7edf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gemlite_autotune/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ARG GIT_COMMIT="main"
5656
WORKDIR /workspace
5757

5858
# Clone the repository with sparse-checkout
59-
RUN git clone --no-checkout ${GIT_REPO} /workspace && \
59+
RUN GIT_LFS_SKIP_SMUDGE=1 git clone --no-checkout ${GIT_REPO} /workspace && \
6060
cd /workspace && \
6161
git sparse-checkout init --cone && \
6262
git sparse-checkout set gemlite_autotune common_utils && \

torchao_float8/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ ARG GIT_COMMIT="HEAD"
5555
# Set working directory
5656
WORKDIR /workspace
5757

58-
# Clone the repository with sparse-checkout
59-
RUN git clone --no-checkout ${GIT_REPO} /workspace && \
58+
# Clone the repository with sparse-checkout (skip LFS files)
59+
RUN GIT_LFS_SKIP_SMUDGE=1 git clone --no-checkout ${GIT_REPO} /workspace && \
6060
cd /workspace && \
6161
git sparse-checkout init --cone && \
6262
git sparse-checkout set torchao_float8 common_utils && \

torchinductor_cudagraph_memory/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ARG GIT_COMMIT="main"
5656
WORKDIR /workspace
5757

5858
# Clone the repository with sparse-checkout
59-
RUN git clone --no-checkout ${GIT_REPO} /workspace && \
59+
RUN GIT_LFS_SKIP_SMUDGE=1 git clone --no-checkout ${GIT_REPO} /workspace && \
6060
cd /workspace && \
6161
git sparse-checkout init --cone && \
6262
git sparse-checkout set torchinductor_cudagraph_memory common_utils && \

0 commit comments

Comments
 (0)