Skip to content

Commit

Permalink
Changed healthcheck to use prgrep to prevent logs from being littered…
Browse files Browse the repository at this point in the history
… with healthcheck connections
  • Loading branch information
jaydrogers committed Jan 9, 2025
1 parent 5403295 commit 1f518e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ RUN apt-get update && apt-get install -y \
proftpd-mod-mysql \
openssl \
netcat-traditional \
procps \
&& rm -rf /var/lib/apt/lists/*

# Copy configuration files
Expand Down Expand Up @@ -63,7 +64,7 @@ ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 21 990 60000-60100

HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD nc -z localhost 21 || exit 1
CMD pgrep proftpd || exit 1

# Start ProFTPD
CMD ["proftpd", "--nodaemon"]

0 comments on commit 1f518e4

Please sign in to comment.