alpine image

This commit is contained in:
Christine Dodrill 2015-11-06 13:30:14 -08:00
parent eb56a9c5a5
commit 3a78b3946c
5 changed files with 28 additions and 0 deletions

13
base/alpine/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM alpine
# Add Tini
ENV TINI_VERSION v0.8.3
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini
RUN chmod +x /tini
ADD ./entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
# update to edge
ADD repositories /etc/apk/repositories
RUN apk update && apk upgrade && apk add runit
ADD runit/ /etc/system

3
base/alpine/README.md Normal file
View File

@ -0,0 +1,3 @@
# `xena/alpine`
This is a cut of Alpine Linux Edge with `runit(8)` for process supervision and zombie management. I use this for my projects when I can because it doesn't suck as much. Just do this like you would with Phusion's base image and everything will be fine.

7
base/alpine/entrypoint.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
set -e
runsvdir /etc/system &
exec /tini -- $*

2
base/alpine/repositories Normal file
View File

@ -0,0 +1,2 @@
http://dl-4.alpinelinux.org/alpine/edge/main
http://dl-4.alpinelinux.org/alpine/edge/testing

3
base/alpine/runit/syslog/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
syslogd -n -O -