You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
466 B
Docker
24 lines
466 B
Docker
# syntax=docker/dockerfile-upstream:1.4.3
|
|
|
|
# rspamd image
|
|
FROM base
|
|
|
|
ARG VERSION=local
|
|
LABEL version=$VERSION
|
|
|
|
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 /
|
|
|
|
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
|