Difference between revisions of "Docker build . -t php-apache"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | [[FROM]] php:apache | + | [[FROM]] [[php:apache]] |
[[COPY]] . /usr/src/myapp | [[COPY]] . /usr/src/myapp | ||
[[WORKDIR]] /usr/src/myapp | [[WORKDIR]] /usr/src/myapp |
Revision as of 20:47, 6 February 2024
FROM php:apache COPY . /usr/src/myapp WORKDIR /usr/src/myapp CMD [ "php", "./your-script.php" ]
docker run php-apache Hello World!We are learning PHP!%
Related
php:apache image
See also
Advertising: