17 lines
416 B
Docker
17 lines
416 B
Docker
FROM alpine:3.7
|
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
|
|
|
RUN \
|
|
# Create OS user (which will be picked up later by apk add)
|
|
addgroup -S -g 587 postfix \
|
|
&& adduser -S -u 587 -h /var/spool/postfix -s /bin/false -g postfix -G postfix postfix \
|
|
# Install Postfix
|
|
&& apk --no-cache add ca-certificates postfix s6
|
|
|
|
COPY docker/ /
|
|
|
|
VOLUME ["/var/spool/postfix"]
|
|
EXPOSE 587
|
|
|
|
CMD ["s6-svscan", "/etc/services.d"]
|