FROM alpine:3.11 MAINTAINER Andrey Arapov RUN apk update && \ apk upgrade && \ apk add postfix runit socklog tzdata ca-certificates && \ rm -rf /etc/service # tzdata - for passing TZ environment variable. # socklog - collect all logs which come to /dev/log. COPY service /etc/service ENTRYPOINT runsvdir -P /etc/service #ENTRYPOINT chpst -Unobody socklog unix /dev/log & postfix start-fg