42_Inception/srcs/requirements/bonus/mailhog/Dockerfile

21 lines
593 B
Text
Raw Normal View History

2025-02-18 11:21:27 +01:00
FROM alpine:3.21.2
LABEL org.opencontainers.image.authors="alier@student.42mulhouse.fr"
2025-02-18 17:54:04 +01:00
RUN apk add curl
2025-02-18 17:51:11 +01:00
RUN wget https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64 -O /usr/local/bin/mailhog \
2025-02-18 11:21:27 +01:00
&& chmod +x /usr/local/bin/mailhog
2025-02-18 17:51:11 +01:00
#RUN wget https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_arm -O /usr/local/bin/mailhog \
# && chmod +x /usr/local/bin/mailhog
2025-02-18 11:21:27 +01:00
ENV MH_UI_WEB_PATH=mailhog
EXPOSE 1025
EXPOSE 8025
2025-02-18 17:54:04 +01:00
HEALTHCHECK --start-period=5s \
2025-02-18 17:56:34 +01:00
CMD curl "http://localhost:8025/mailhog/" --fail || exit 1
2025-02-18 17:54:04 +01:00
2025-02-18 11:21:27 +01:00
ENTRYPOINT ["mailhog"]