mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
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.
This commit is contained in:
4
Makefile
4
Makefile
@@ -19,10 +19,10 @@ ifneq ($(wildcard ../phd/LICENSE),)
|
||||
endif
|
||||
|
||||
xhtml: .docker/built
|
||||
docker run ${PATHS} -w /var/www -u ${CURRENT_UID}:${CURRENT_GID} php/doc-en
|
||||
docker run --rm ${PATHS} -w /var/www -u ${CURRENT_UID}:${CURRENT_GID} php/doc-en
|
||||
|
||||
php: .docker/built
|
||||
docker run ${PATHS} -w /var/www -u ${CURRENT_UID}:${CURRENT_GID} \
|
||||
docker run --rm ${PATHS} -w /var/www -u ${CURRENT_UID}:${CURRENT_GID} \
|
||||
-e FORMAT=php php/doc-en
|
||||
|
||||
build: .docker/built
|
||||
|
||||
Reference in New Issue
Block a user