mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
Merge pull request #8 from infoslack/alpine
Add Ex: Reducing the size of the image using Alpine
This commit is contained in:
commit
b775e0d5b5
9
alpine-t/Dockerfile
Normal file
9
alpine-t/Dockerfile
Normal 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
21
alpine-t/README.md
Normal 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user