Skip to content

Commit

Permalink
"curl" is already installed (#42)
Browse files Browse the repository at this point in the history
* Move executable in bin

Signed-off-by: Jean-Yves <[email protected]>

* Update Dockerfile

Signed-off-by: Jean-Yves <[email protected]>

* Update shellcheck.yml

Signed-off-by: Jean-Yves <[email protected]>

---------

Signed-off-by: Jean-Yves <[email protected]>
  • Loading branch information
docjyJ authored Dec 8, 2024
1 parent b36f933 commit 81b6d2e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ on:
pull_request:
paths:
- '**.sh'
- '/bin/*'
push:
branches:
- main
paths:
- '**.sh'
- '/bin/*'

jobs:
shellcheck:
Expand Down
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"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 81b6d2e

Please sign in to comment.