Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com>
  • Loading branch information
docjyJ committed Dec 8, 2024
1 parent 44d5a9d commit af65262
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# 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=7.88.1-10+deb12u7
COPY --chmod=775 bin/* /usr/local/bin/

EXPOSE 10003

HEALTHCHECK --interval=30s --timeout=3s --start-period=5s \
CMD bash /healthcheck.sh
CMD bash /usr/local/bin/healthcheck

ENTRYPOINT [ "/entrypoint.sh" ]
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
CMD ["/usr/local/bin/stalwart-mail", "--config", "/opt/stalwart-mail/etc/config.toml"]

0 comments on commit af65262

Please sign in to comment.