├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── SPONSORS └── scripts └── apk-install /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.6 2 | 3 | # ensure latest packages are part of the image 4 | RUN apk upgrade --no-cache 5 | 6 | COPY ./scripts/apk-install /usr/sbin/apk-install 7 | 8 | # Base packages useful for other containers 9 | RUN apk-install ca-certificates curl wget 10 | 11 | CMD ["/bin/sh"] 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2014-2017 Luis Lavena 4 | 5 | Permission to use, copy, modify, and distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | build: Dockerfile 2 | docker build -t mini-base . 3 | 4 | tag: 5 | docker tag mini-base mini/base 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mini/base 2 | 3 | A minimal, busybox-like container based on [Alpine Linux](http://alpinelinux.org/), 4 | that contains [apk](http://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management) 5 | package manager to ease installation of extra packages and help you build 6 | smaller development containers. 7 | 8 | This is possible thanks to the work from [uggedal](https://github.com/uggedal) 9 | on packaging Alpine Linux for Docker. 10 | 11 | This project is now build on top of official [Alpine Linux](https://hub.docker.com/_/alpine/) 12 | image, only including some convenience packages and scripts on top. 13 | 14 | ## Usage 15 | 16 | Use this as base for your own containers: 17 | 18 | ```dockerfile 19 | FROM mini/base 20 | RUN apk-install 21 | 22 | CMD ["/bin/sh"] 23 | ``` 24 | 25 | And install or extend with packages as you please. 26 | 27 | You can find a list of packages you can install on Alpine Linux [Packages](http://forum.alpinelinux.org/packages) 28 | section. 29 | 30 | ### Included packages 31 | 32 | To get you started, a set of packages have been integrated: 33 | 34 | - curl 35 | - wget 36 | - ca-certificates 37 | 38 | Without those, installation of remote packages over HTTPS connections was 39 | not possible. 40 | 41 | ## Sponsor 42 | 43 | Work on this was made possible thanks to [AREA 17](http://www.area17.com). 44 | 45 | ## License 46 | 47 | All the code contained in this repository, unless explicitly stated, is 48 | licensed under ISC license. 49 | 50 | A copy of the license can be found inside the [LICENSE](LICENSE) file. 51 | -------------------------------------------------------------------------------- /SPONSORS: -------------------------------------------------------------------------------- 1 | AREA 17 http://www.area17.com 2 | -------------------------------------------------------------------------------- /scripts/apk-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | apk add --no-cache "$@" 3 | --------------------------------------------------------------------------------