File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ COPY --from=builder /tmp/smtproxy /usr/local/bin/smtproxy
2222RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/smtproxy && mkdir /tls && chown 1000 /tls
2323
2424USER 1000
25- EXPOSE 25 465 1025 1465
25+ EXPOSE 25 465 1025 1465 9100
2626
2727ENTRYPOINT ["/usr/local/bin/smtproxy"]
Original file line number Diff line number Diff line change @@ -25,5 +25,5 @@ COPY --from=cap /usr/local/bin/smtproxy /usr/local/bin/smtproxy
2525COPY --chown=nonroot:nonroot --from=builder /dev/null /tls/.keep
2626
2727USER nonroot
28- EXPOSE 25 465 1025 1465
28+ EXPOSE 25 465 1025 1465 9100
2929ENTRYPOINT ["/usr/local/bin/smtproxy"]
Original file line number Diff line number Diff line change 33FROM cgr.dev/chainguard/go:latest AS builder
44ARG GIT_COMMIT
55ARG GO_BUILD_TAGS
6- WORKDIR /srv
6+ WORKDIR /src
77COPY ./src .
88RUN CGO_ENABLED=0 go build -tags "${GO_BUILD_TAGS}" -trimpath -ldflags="-s -w -X main.gBuildPlatform=wolfi" -o /tmp/smtproxy
99
@@ -15,5 +15,5 @@ COPY --from=builder /tmp/smtproxy /usr/local/bin/smtproxy
1515
1616RUN setcap cap_net_bind_service=+ep /usr/local/bin/smtproxy && mkdir -p /tls && chown nonroot /tls
1717USER nonroot
18- EXPOSE 25 465 1025 1465
18+ EXPOSE 25 465 1025 1465 9100
1919ENTRYPOINT ["/usr/local/bin/smtproxy"]
You can’t perform that action at this time.
0 commit comments