Sign inSign up

dannywangari/wordpress-clone

By dannywangari

•Updated over 3 years ago

WordPress on php server

Image
Content management system
0

148

dannywangari/wordpress-clone repository overview

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:

⁠Usage:

docker run --name container-name -d -p80:80 dannywangari/wordpress-clone:tag

⁠Example:

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.

⁠Dockerfile

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"]

Tag summary

Content type

Image

Digest

sha256:1250a55e3…

Size

197.2 MB

Last updated

over 3 years ago

docker pull dannywangari/wordpress-clone