Explicitly using desired versions; added nano editor into dockerfile (less logs)

This commit is contained in:
William Miceli
2019-11-24 23:00:53 -05:00
parent e7edd119f9
commit e24d376cb0
2 changed files with 5 additions and 8 deletions

View File

@@ -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

View File

@@ -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