Difference between revisions of "Docker build . -t php-apache"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
== Related == | == Related == | ||
[[php:apache]] image | [[php:apache]] image | ||
− | [[docker run - | + | [[docker run -d]] php-apache-app |
== See also == | == See also == |
Revision as of 13:20, 15 February 2024
docker build . -t php-apache-app FROM php:apache COPY . /usr/src/myapp WORKDIR /usr/src/myapp CMD [ "php", "./index.php" ] EXPOSE 80
docker run php-apache Hello World!We are learning PHP!%
Related
php:apache image docker run -d php-apache-app
See also
Advertising: