diff --git a/Dockerfile b/Dockerfile index e211b90..f6809cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,12 @@ WORKDIR /var/www # Installing needed packages RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ - mysql-server \ + mysql-server-5.7 \ + nano \ nginx \ - php-fpm \ - php-mysql \ - php-cli \ + php7.2-fpm \ + php7.2-mysql \ + php7.2-cli \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/www/html \ && rm /etc/nginx/sites-enabled/default diff --git a/entrypoint.sh b/entrypoint.sh index a1925bd..ce3d439 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,9 +11,5 @@ service php7.2-fpm start echo "[ INFO ] Setting up friendBook database" mysql -u root < /scripts/friendBook.sql -# Installing nano to make live changes a little quicker -echo "[ INFO ] Installing nano editor" -apt-get update && apt-get install -y nano - echo "[ INFO ] Starting nginx" nginx -g "daemon off;" # Foreground