-
-
Save gabidavila/bfc7628108ad5ada836233b9cdc302ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM wordpress:5.0.3-php7.3-apache | |
### WHATEVER COMES BEFORE ### | |
EXPOSE 80 443 3306 | |
ENV DEBIAN_FRONTEND noninteractive | |
ARG DB_ROOT_PASSWORD | |
RUN apt-get update | |
RUN apt-get -y install wget lsb-release gnupg | |
RUN curl -o /tmp/mysql.deb https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb | |
RUN echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | debconf-set-selections | |
RUN echo mysql-community-server mysql-community-server/root-pass $DB_ROOT_PASSWORD rot | debconf-set-selections | |
RUN echo mysql-community-server mysql-community-server/re-root-pass $DB_ROOT_PASSWORD rot | debconf-set-selections | |
RUN dpkg -i /tmp/mysql.deb | |
RUN apt-get update | |
RUN apt-get -y install mysql-server mysql-client | |
### WHATEVER COMES AFTER ### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment