Add Ex: Reducing the size of the image using Alpine

This commit is contained in:
Daniel Romero 2015-03-25 15:42:22 -03:00
parent d661a03042
commit 2c5f9fd2e7
2 changed files with 30 additions and 0 deletions

9
alpine-t/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM alpine:latest
MAINTAINER Daniel Romero <infoslack@gmail.com>
RUN apk update
RUN apk add ca-certificates ruby-dev build-base && rm -rf /var/cache/apk/*
RUN gem install t
ENTRYPOINT [ "t" ]

21
alpine-t/README.md Normal file
View File

@ -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
```