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 authored Dec 8, 2024
1 parent fb0ad3d commit c5e75e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# 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 \
CMD bash /healthcheck.sh

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

0 comments on commit c5e75e4

Please sign in to comment.