Skip to content

Commit 819ab5d

Browse files
authoredMay 18, 2023
Change the docker image from alpine to debian in Makefile (#15132)
Why I did it For security and consistency consideration, change the docker image from alpine to Debian in Makefile Work item tracking Microsoft ADO (number only): 23077660 How I did it change the docker image from alpine to Debian in Makefile
1 parent b7d04b6 commit 819ab5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Makefile.work

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ endif
277277
DOCKER_LOCKFILE_SAVE := $(DOCKER_LOCKDIR)/docker_save.lock
278278
$(shell mkdir -m 0777 -p $(DOCKER_LOCKDIR))
279279
$(shell [ -f $(DOCKER_LOCKFILE_SAVE) ] || (touch $(DOCKER_LOCKFILE_SAVE) && chmod 0777 $(DOCKER_LOCKFILE_SAVE)))
280-
$(docker run --rm -v $(DOCKER_ROOT)\:/mount alpine sh -c 'rm -rf /mount/')
280+
$(shell [ -d $(DOCKER_ROOT) ] && docker run --rm -v $(DOCKER_ROOT)\:/mount debian sh -c 'rm -rf /mount/*')
281281
$(mkdir -p $(DOCKER_ROOT))
282282

283283
ifeq ($(DOCKER_BUILDER_MOUNT),)

0 commit comments

Comments
 (0)