mail-server/Dockerfile

20 lines
587 B
Text
Raw Normal View History

2023-07-22 11:08:08 +00:00
FROM debian:bullseye-slim
2023-07-11 15:16:08 +00:00
2023-07-23 06:43:04 +00:00
RUN apt-get update -y && apt-get install -yq ca-certificates curl
2023-07-11 15:16:08 +00:00
2023-07-22 11:08:08 +00:00
COPY resources/docker/entrypoint.sh /usr/local/bin/entrypoint.sh
2024-04-07 15:20:50 +00:00
COPY resources/docker/download.sh /usr/local/bin/download.sh
2023-07-22 11:08:08 +00:00
RUN chmod a+rx /usr/local/bin/*.sh
2024-04-07 15:20:50 +00:00
RUN /usr/local/bin/download.sh
RUN rm /usr/local/bin/download.sh
2023-07-23 06:43:04 +00:00
2023-07-11 15:16:08 +00:00
RUN useradd stalwart-mail -s /sbin/nologin -M
RUN mkdir -p /opt/stalwart-mail
RUN chown stalwart-mail:stalwart-mail /opt/stalwart-mail
2023-07-27 18:18:34 +00:00
VOLUME [ "/opt/stalwart-mail" ]
2024-04-07 15:20:50 +00:00
EXPOSE 443 25 587 465 143 993 4190 8080
2023-07-11 15:16:08 +00:00
2023-07-22 11:08:08 +00:00
ENTRYPOINT ["/bin/sh", "/usr/local/bin/entrypoint.sh"]