mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-11 14:42:46 +02:00
Add Ex: Reducing the size of the image using Alpine
This commit is contained in:
parent
d661a03042
commit
2c5f9fd2e7
alpine-t
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…
x
Reference in New Issue
Block a user