Explicitly using desired versions; added nano editor into dockerfile (less logs)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user