[CI/Build] remove .github from .dockerignore, add dirty repo check (#9375)

This commit is contained in:
Daniele
2024-10-17 10:25:06 -07:00
committed by GitHub
parent 81ede99ca4
commit a2c71c5405
12 changed files with 54 additions and 17 deletions
+4 -1
View File
@@ -42,7 +42,10 @@ RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,src=requirements-cpu.txt,target=requirements-cpu.txt \
pip install -v -r requirements-cpu.txt
COPY ./ ./
COPY . .
ARG GIT_REPO_CHECK=0
RUN --mount=type=bind,source=.git,target=.git \
if [ "$GIT_REPO_CHECK" != 0 ]; then bash tools/check_repo.sh ; fi
# Support for building with non-AVX512 vLLM: docker build --build-arg VLLM_CPU_DISABLE_AVX512="true" ...
ARG VLLM_CPU_DISABLE_AVX512