82 lines
1.7 KiB
Docker
82 lines
1.7 KiB
Docker
FROM alpine:latest
|
|
|
|
RUN adduser -D expediteur
|
|
|
|
RUN apk add \
|
|
bash \
|
|
execline \
|
|
nano \
|
|
nano-syntax \
|
|
opendkim \
|
|
opendkim-utils \
|
|
opendmarc \
|
|
postfix \
|
|
s6-overlay \
|
|
vim
|
|
|
|
# Dependencies for REST API
|
|
RUN apk add \
|
|
gcc \
|
|
libc-dev \
|
|
make \
|
|
perl-app-cpanminus \
|
|
perl-clone \
|
|
perl-config-any \
|
|
perl-data-optlist \
|
|
perl-dev \
|
|
perl-exporter-tiny \
|
|
perl-extutils-config \
|
|
perl-extutils-helpers \
|
|
perl-extutils-installpaths \
|
|
perl-file-sharedir \
|
|
perl-file-sharedir-install \
|
|
perl-file-slurp \
|
|
perl-file-which \
|
|
perl-hash-merge-simple \
|
|
perl-hash-multivalue \
|
|
perl-http-date \
|
|
perl-http-headers-fast \
|
|
perl-import-into \
|
|
perl-json-maybexs \
|
|
perl-module-build \
|
|
perl-module-build-tiny \
|
|
perl-module-implementation \
|
|
perl-module-runtime \
|
|
perl-moo \
|
|
perl-params-util \
|
|
perl-params-validate \
|
|
perl-path-tiny \
|
|
perl-plack \
|
|
perl-readonly \
|
|
perl-ref-util \
|
|
perl-role-tiny \
|
|
perl-safe-isa \
|
|
perl-sub-exporter \
|
|
perl-sub-install \
|
|
perl-sub-quote \
|
|
perl-template-toolkit \
|
|
perl-type-tiny \
|
|
perl-yaml
|
|
|
|
RUN cpanm -n -v \
|
|
Dancer2 \
|
|
Module::Pluggable::Object
|
|
|
|
RUN newaliases
|
|
|
|
RUN install -m 0700 -o opendkim -g opendkim -d /run/opendkim
|
|
RUN install -m 0700 -o opendkim -g opendkim -d /etc/opendkim/keys
|
|
|
|
COPY etc/s6-overlay /etc/s6-overlay
|
|
COPY etc/postfix /etc/postfix
|
|
COPY etc/opendkim /etc/opendkim
|
|
|
|
COPY web-api /src/api
|
|
|
|
ENTRYPOINT ["/init"]
|
|
|
|
# Ne pas positionner USER, ou sinon les services ne démarreront pas de manière
|
|
# adéquate.
|
|
|
|
COPY --chown=expediteur scripts /home/expediteur/scripts
|