mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-08 15:34:46 +08:00
- It's now possible to choose the logging type - either 'plain' or 'json' - The code is ready to support multiple integration tests (with different configurations) - `OPENDKIM_` and `POSTFIX_` variables are handled properly and recorded in the corresponding files. (This had a downfall that `bash` now needs to be installed, so we can probably simplify some of the shell scripts.)
15 lines
370 B
Docker
15 lines
370 B
Docker
# ---- MAILSEND ----
|
|
FROM boky/alpine-bootstrap AS mailsend
|
|
COPY install_mailsend.sh /tmp/
|
|
RUN chmod +x /tmp/install_mailsend.sh && /tmp/install_mailsend.sh
|
|
|
|
# ---- TEST ----
|
|
FROM boky/alpine-bootstrap
|
|
|
|
RUN apk add --no-cache bash bats
|
|
COPY --from=mailsend /tmp/mailsend-go-dir/mailsend-go /usr/local/bin/mailsend
|
|
|
|
WORKDIR /code
|
|
ENTRYPOINT ["/usr/bin/bats"]
|
|
|
|
CMD ["-v"]
|