From a8268cb9a3af17e2bef521e8a458e904fa57e4b6 Mon Sep 17 00:00:00 2001 From: "Carlos A. Gomes" Date: Wed, 4 Oct 2017 20:28:54 -0300 Subject: [PATCH] Create Dockerfile First try of a read-to-build image --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2b0e277 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM debian:8.9 +MAINTAINER David Sferruzza + +# Let the conatiner know that there is no tty +ENV DEBIAN_FRONTEND noninteractive +ENV COMPOSER_NO_INTERACTION 1 + +# Add Node.js repo +RUN \ + curl -sL https://deb.nodesource.com/setup_8.x | bash - + && apt-get install --no-install-recommends -y \ + curl \ + nodejs \ + build-essential \ + apt-transport-https \ + ca-certificates \ + gnupg2 \ + openssh-client \ + bzip2 \ + git \ + php5-cli \ + nodejs \ + # Slim down image + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man/?? /usr/share/man/??_* \ + # Show versions + && php -v && node -v && npm -v \ + # Install composer + && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + && composer selfupdate +