An open API service indexing awesome lists of open source software.

https://github.com/stakater/dockerfile-base-alpine

Base Docker Image based on Alpine
https://github.com/stakater/dockerfile-base-alpine

alpine docker-image

Last synced: 3 days ago
JSON representation

Base Docker Image based on Alpine

Awesome Lists containing this project

README

          

# Base Docker Image based on Alpine

This is an alpine docker image used as base for other docker images in stakater.

### Supported tags and respective Dockerfile links
* 3.7, latest ([3.7/Dockerfile](https://github.com/stakater/dockerfile-base-alpine/blob/master/3.7/Dockerfile))
* 3.6 ([3.6/Dockerfile](https://github.com/stakater/dockerfile-base-alpine/blob/master/3.6/Dockerfile))
* 3.5 ([3.5/Dockerfile](https://github.com/stakater/dockerfile-base-alpine/blob/master/3.5/Dockerfile))
* 3.4 ([3.4/Dockerfile](https://github.com/stakater/dockerfile-base-alpine/blob/master/3.4/Dockerfile))

Alpine Linux is a Linux distribution built around musl libc and BusyBox. The image is very small in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications. Read more about Alpine Linux here and you can see how their mantra fits in right at home with Docker images.

How to run:
```
docker run -it --rm stakater/base-alpine /bin/bash
```

## Running your services

To add any service daemons, you can create `runit` entries. Just write a shell script and add it to `/etc/service` like `/etc/service/myDaemon/run`. Where `myDaemon` is the name of your daemon and the script should be placed by the name `run`.
Runit will be responsible for keeping your daemon running.

Be sure not to override the `ENTRYPOINT` for your contianer as the default `ENTRYPOINT` will keep runit / runsvinit up and running.