Skip to content

Instantly share code, notes, and snippets.

@pekechis
Created January 11, 2021 11:37
Show Gist options
  • Save pekechis/50089bf90443bac115572a71b8ec42ac to your computer and use it in GitHub Desktop.
Save pekechis/50089bf90443bac115572a71b8ec42ac to your computer and use it in GitHub Desktop.
Dockerfile para una imagen de apache con PHP 7.4 que descargue el código de WordPress y lo ponga en el servidor raíz del servidor
FROM php:7.4-apache
RUN apt update && apt install -y git
WORKDIR /var/www/html
RUN git clone https://github.com/WordPress/WordPress.git .
RUN chown -R www-data:www-data /var/www/html
RUN docker-php-ext-install mysqli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment