From 7675cd162fbf740a512c310fcc70a37c0bc7bf16 Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Thu, 9 Mar 2023 15:49:47 +1300 Subject: [PATCH] Docker: Expose default ports (1025/tcp 8025/tcp) @see #63 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 15f3a64..aff301b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,11 +10,12 @@ RUN apk add --no-cache git npm && \ npm install && npm run package && \ CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/axllent/mailpit/config.Version=${VERSION}" -o /mailpit - FROM alpine:latest COPY --from=builder /mailpit /mailpit RUN apk add --no-cache tzdata +EXPOSE 1025/tcp 8025/tcp + ENTRYPOINT ["/mailpit"]