Skip to content

Instantly share code, notes, and snippets.

@1franck
Created December 21, 2018 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1franck/937b54b1f4304115b662c6bb9a63d12c to your computer and use it in GitHub Desktop.
Save 1franck/937b54b1f4304115b662c6bb9a63d12c to your computer and use it in GitHub Desktop.
dockerfile for ubuntu / php72 cli stuff
FROM ubuntu:18.04
ENV TZ=America/Toronto
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y software-properties-common && \
apt-get install -y git vim curl whois siege
RUN apt-get install -y php && \
apt-get install -y php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php && \
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment