Skip to content

Commit 4ea31bf

Browse files
authored
Makefile: Automatically remove Docker containers (#3921)
As a `docker run` will only perform a single build, the container is useless afterwards. Ensure it is automatically removed after the build.
1 parent f013503 commit 4ea31bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ ifneq ($(wildcard ../phd/LICENSE),)
1919
endif
2020

2121
xhtml: .docker/built
22-
docker run ${PATHS} -w /var/www -u ${CURRENT_UID}:${CURRENT_GID} php/doc-en
22+
docker run --rm ${PATHS} -w /var/www -u ${CURRENT_UID}:${CURRENT_GID} php/doc-en
2323

2424
php: .docker/built
25-
docker run ${PATHS} -w /var/www -u ${CURRENT_UID}:${CURRENT_GID} \
25+
docker run --rm ${PATHS} -w /var/www -u ${CURRENT_UID}:${CURRENT_GID} \
2626
-e FORMAT=php php/doc-en
2727

2828
build: .docker/built

0 commit comments

Comments
 (0)