From 2c5f9fd2e73d3d01df539f387457fd2d58c7bbff Mon Sep 17 00:00:00 2001 From: Daniel Romero Date: Wed, 25 Mar 2015 15:42:22 -0300 Subject: [PATCH] Add Ex: Reducing the size of the image using Alpine --- alpine-t/Dockerfile | 9 +++++++++ alpine-t/README.md | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 alpine-t/Dockerfile create mode 100644 alpine-t/README.md diff --git a/alpine-t/Dockerfile b/alpine-t/Dockerfile new file mode 100644 index 0000000..b930f63 --- /dev/null +++ b/alpine-t/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:latest + +MAINTAINER Daniel Romero + +RUN apk update +RUN apk add ca-certificates ruby-dev build-base && rm -rf /var/cache/apk/* +RUN gem install t + +ENTRYPOINT [ "t" ] diff --git a/alpine-t/README.md b/alpine-t/README.md new file mode 100644 index 0000000..f438f3f --- /dev/null +++ b/alpine-t/README.md @@ -0,0 +1,21 @@ +alpine-t +========= +Docker image based on Alpine Linux ;) + +### What is Alpine ? + +Alpine Linux is a Linux distribution built around musl libc and BusyBox. +The image is only 5 MB in size and has access to a package repository +that is much more complete than other BusyBox based images. +More: [https://registry.hub.docker.com/_/alpine/](https://registry.hub.docker.com/_/alpine/) + +### Why ? + +Image based `ruby:latest` vs `alpine:latest`: + +``` +$ docker images +REPOSITORY TAG VIRTUAL SIZE +infoslack/alpine-t latest 161.4 MB +infoslack/t latest 781.5 MB +```