docker build . -t php-apache

From wikieduonline
Revision as of 13:30, 15 February 2024 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

docker build . -t php-apache-app
FROM php:apache
COPY . /var/www/html
WORKDIR /var/www/html
CMD [ "php", "./index.php" ]
EXPOSE 80
docker run -d php-apache -n php-apache-app
Hello World!We are learning PHP!%

Related[edit]

php:apache image
docker run -d php-apache-app

See also[edit]

Advertising: