2019-12-26 09:46:20 +00:00
|
|
|
FROM alpine:3.11
|
2016-06-19 21:55:47 +00:00
|
|
|
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
|
|
|
|
|
2018-12-16 21:39:36 +00:00
|
|
|
RUN apk update && \
|
2016-06-19 21:55:47 +00:00
|
|
|
apk upgrade && \
|
2018-12-17 12:33:44 +00:00
|
|
|
apk add postfix runit socklog tzdata ca-certificates && \
|
|
|
|
rm -rf /etc/service
|
2016-06-19 21:55:47 +00:00
|
|
|
|
2018-12-16 21:39:36 +00:00
|
|
|
# tzdata - for passing TZ environment variable.
|
2018-12-17 12:33:44 +00:00
|
|
|
# socklog - collect all logs which come to /dev/log.
|
2016-06-19 21:55:47 +00:00
|
|
|
|
2018-12-17 12:33:44 +00:00
|
|
|
COPY service /etc/service
|
2016-06-19 21:55:47 +00:00
|
|
|
ENTRYPOINT runsvdir -P /etc/service
|
2018-12-17 12:33:44 +00:00
|
|
|
#ENTRYPOINT chpst -Unobody socklog unix /dev/log & postfix start-fg
|