Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ LABEL Description="Cutting-edge LAMP stack, based on Ubuntu 16.04 LTS. Includes
Usage="docker run -d -p [HOST WWW PORT NUMBER]:80 -p [HOST DB PORT NUMBER]:3306 -v [HOST WWW DOCUMENT ROOT]:/var/www/html -v [HOST DB DOCUMENT ROOT]:/var/lib/mysql fauria/lamp" \
Version="1.0"

RUN apt-get update
RUN apt-get upgrade -y

COPY debconf.selections /tmp/
RUN debconf-set-selections /tmp/debconf.selections

RUN apt-get install -y zip unzip
RUN apt-get install -y \
# Install everything to keep in a single Docker Layer and speed up Rebuilding speeds
RUN apt-get update && apt-get upgrade -y && apt-get install -y zip unzip && apt-get install -y \
php7.0 \
php7.0-bz2 \
php7.0-cgi \
Expand Down Expand Up @@ -45,12 +42,13 @@ RUN apt-get install -y \
php7.0-tidy \
php7.0-xmlrpc \
php7.0-xsl \
php7.0-zip
RUN apt-get install apache2 libapache2-mod-php7.0 -y
RUN apt-get install mariadb-common mariadb-server mariadb-client -y
RUN apt-get install postfix -y
RUN apt-get install git nodejs npm composer nano tree vim curl ftp -y
RUN npm install -g bower grunt-cli gulp
php7.0-zip && \
apt-get install apache2 libapache2-mod-php7.0 -y && \
apt-get install mariadb-common mariadb-server mariadb-client -y && \
apt-get install postfix -y && \
apt-get install git nodejs npm composer nano tree vim curl ftp -y && \
npm install -g bower grunt-cli gulp && \
apt autoremove && apt clean

ENV LOG_STDOUT **Boolean**
ENV LOG_STDERR **Boolean**
Expand Down