docker/golang/Dockerfile
FROM ubuntu:16.04 MAINTAINER Julian Kleinhans <julian.kleinhans@aoe.com> ARG STACKFORMATION_VERSION RUN locale-gen en_US.UTF-8ENV LANG en_US.UTF-8ENV LANGUAGE en_US:enENV LC_ALL en_US.UTF-8 ## CommonRUN apt-get update \ && apt-get install -y sudo wget curl zip unzip git software-properties-common ## AWS cliRUN apt-get install -y python3RUN curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" \ && unzip awscli-bundle.zip \ && /usr/bin/python3 awscli-bundle/install -i /usr/local/aws -b /usr/bin/aws ## PHPRUN add-apt-repository -y ppa:ondrej/php \ && apt-get update \ && apt-get install -y php7.0-fpm php7.0-cli php7.0-mcrypt php7.0-gd php7.0-mysql \ php7.0-pgsql php7.0-imap php-memcached php7.0-mbstring php7.0-xml php7.0-curl \ php7.0-sqlite3 php7.0-xdebug \ && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \ && mkdir /run/phpCOPY php-fpm.conf /etc/php/7.0/fpm/php-fpm.conf ## StackformationRUN wget -q https://github.com/AOEpeople/StackFormation/releases/download/${STACKFORMATION_VERSION}/stackformation.phar \ && mv stackformation.phar /usr/bin/stackformation \ && chmod ugo+x /usr/bin/stackformation ## GolangRUN apt-get update \ && apt-get install -y git software-properties-common \ && add-apt-repository -y ppa:ubuntu-lxc/lxd-stable \ && apt-get update \ && apt-get install -y golang ## CleanupRUN apt-get remove -y --purge software-properties-common \ && apt-get cleanRUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ENTRYPOINT ["stackformation"]