alpine image
This commit is contained in:
parent
eb56a9c5a5
commit
3a78b3946c
|
@ -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
|
|
@ -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.
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
runsvdir /etc/system &
|
||||
|
||||
exec /tini -- $*
|
|
@ -0,0 +1,2 @@
|
|||
http://dl-4.alpinelinux.org/alpine/edge/main
|
||||
http://dl-4.alpinelinux.org/alpine/edge/testing
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
syslogd -n -O -
|
Loading…
Reference in New Issue