diff --git a/Dockerfile b/Dockerfile index 16f58ca..4ccf6db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,6 @@ # From https://github.com/stalwartlabs/mail-server/blob/main/Dockerfile FROM stalwartlabs/mail-server:v0.10.6 -COPY --chmod=775 entrypoint.sh /entrypoint.sh -COPY --chmod=775 healthcheck.sh /healthcheck.sh -COPY --chmod=775 webadmin.sh /webadmin.sh - -RUN apt-get install --no-install-recommends -y curl - EXPOSE 10003 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s \ @@ -14,3 +8,9 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s \ ENTRYPOINT [ "/entrypoint.sh" ] CMD ["/usr/local/bin/stalwart-mail", "--config", "/opt/stalwart-mail/etc/config.toml"] + +COPY --chmod=775 entrypoint.sh /entrypoint.sh +COPY --chmod=775 healthcheck.sh /healthcheck.sh +COPY --chmod=775 webadmin.sh /webadmin.sh + +RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean