WordPress on php server
148
This image has been created as a PHP website. WordPress files have been copied and will be served when the container is run. This was done for learning purposes. An extra task is to create a MySQL container and connect to this WordPress image to have the WordPress website running normally. To run this image:
docker run --name container-name -d -p80:80 dannywangari/wordpress-clone:tag
docker run --name wordpress-frontend -d -p80:80 dannywangari/wordpress-clone:latest
Port 80 has been exposed.
Once this runs successfully, run a MySQL container to note the details used to be used in the wordpress frontend.
FROM PHP
WORKDIR /wordpress
COPY . .
RUN apt-get update && docker-php-ext-install pdo pdo_mysql mysqli
EXPOSE 80
CMD ["php", "-S", "0.0.0.0:80"]
Content type
Image
Digest
sha256:1250a55e3…
Size
197.2 MB
Last updated
over 3 years ago
docker pull dannywangari/wordpress-clone