2023-07-22 19:08:08 +08:00
|
|
|
FROM debian:bullseye-slim
|
2023-07-11 23:16:08 +08:00
|
|
|
|
2023-07-22 19:08:08 +08:00
|
|
|
RUN apt-get update -y && apt-get install -yq ca-certificates curl tar
|
2023-07-11 23:16:08 +08:00
|
|
|
|
2023-07-22 19:08:08 +08:00
|
|
|
COPY resources/docker/configure.sh /usr/local/bin/configure.sh
|
|
|
|
COPY resources/docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
2023-07-11 23:16:08 +08:00
|
|
|
|
2023-07-22 19:08:08 +08:00
|
|
|
RUN chmod a+rx /usr/local/bin/*.sh
|
2023-07-11 23:16:08 +08: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-22 19:08:08 +08:00
|
|
|
EXPOSE 8080 25 587 465 8686 143 993 4190
|
2023-07-11 23:16:08 +08:00
|
|
|
|
2023-07-22 19:08:08 +08:00
|
|
|
ENTRYPOINT ["/bin/sh", "/usr/local/bin/entrypoint.sh"]
|