1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/core/rspamd/Dockerfile

24 lines
466 B
Docker
Raw Normal View History

# syntax=docker/dockerfile-upstream:1.4.3
2021-11-04 15:22:12 +02:00
# rspamd image
FROM base
ARG VERSION=local
LABEL version=$VERSION
2016-06-19 21:56:20 +02:00
RUN set -euxo pipefail \
; apk add --no-cache curl rspamd rspamd-controller rspamd-fuzzy rspamd-proxy \
; mkdir /run/rspamd
COPY conf/ /conf/
COPY start.py /
2016-06-19 21:56:20 +02:00
RUN echo $VERSION >/version
EXPOSE 11332/tcp 11334/tcp 11335/tcp
HEALTHCHECK --start-period=350s CMD curl -skfLo /dev/null http://localhost:11334/
VOLUME ["/var/lib/rspamd"]
CMD /start.py