Last active
February 15, 2016 14:37
-
-
Save ypereirareis/bcea06f8de4282efe624 to your computer and use it in GitHub Desktop.
Docker image size optimization FULL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
MAINTAINER Yannick PEREIRA-REIS <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -y --force-yes \ | |
build-essential \ | |
git \ | |
curl \ | |
php5 \ | |
php5-mcrypt \ | |
php5-tidy \ | |
php5-cli \ | |
php5-common \ | |
php5-curl \ | |
php5-intl \ | |
php5-fpm \ | |
php-apc \ | |
nginx \ | |
ssh \ | |
npm | |
# Install Elasticsearch | |
RUN curl -L -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.2.0/elasticsearch-2.2.0.tar.gz | |
RUN tar -xvf elasticsearch-2.2.0.tar.gz | |
RUN rm -rf elasticsearch-2.2.0.tar.gz | |
# Install nodejs | |
RUN npm install express | |
# Install Satisfy a PHP project | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
RUN /usr/local/bin/composer create-project playbloom/satisfy:2.0.6 --stability=dev | |
RUN chmod -R 777 /satisfy | |
EXPOSE 80 443 9200 9300 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker images | grep img_size_optim | |
img_size_optim latest f8195dc6cc29 About a minute ago 703.4 MB | |
$ docker history f8195dc6cc29 | |
IMAGE CREATED CREATED BY SIZE COMMENT | |
f8195dc6cc29 About a minute ago /bin/sh -c #(nop) EXPOSE 443/tcp 80/tcp 9200/ 0 B | |
8ca1e0d654c4 14 minutes ago /bin/sh -c chmod -R 777 /satisfy 71.58 MB | |
8c3f6ce559f1 14 minutes ago /bin/sh -c /usr/local/bin/composer create-pro 88.33 MB | |
a6d9f7c3d635 16 minutes ago /bin/sh -c curl -sS https://getcomposer.org/i 1.555 MB | |
0e45d8bf331e 16 minutes ago /bin/sh -c npm install express 3.4 MB | |
68f8e0aa685a 17 minutes ago /bin/sh -c rm -rf elasticsearch-2.2.0.tar.gz 0 B | |
1594807c6f11 17 minutes ago /bin/sh -c tar -xvf elasticsearch-2.2.0.tar.g 33.14 MB | |
9af6cbbc951d 17 minutes ago /bin/sh -c curl -L -O https://download.elasti 29.42 MB | |
b0f839e1d176 19 minutes ago /bin/sh -c apt-get update && apt-get install 287.7 MB | |
1cc38eb54bda 23 minutes ago /bin/sh -c #(nop) ENV DEBIAN_FRONTEND=noninte 0 B | |
0e898caf0cef 46 minutes ago /bin/sh -c #(nop) MAINTAINER Yannick PEREIRA- 0 B | |
6d4946999d4f 8 months ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0 B | |
9fd3c8c9af32 8 months ago /bin/sh -c sed -i 's/^#\s*\(deb.*universe\)$/ 1.895 kB | |
435050075b3f 8 months ago /bin/sh -c echo '#!/bin/sh' > /usr/sbin/polic 194.5 kB | |
428b411c28f0 8 months ago /bin/sh -c #(nop) ADD file:b3447f4503091bb6bb 188.1 MB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment