This commit is contained in:
2025-11-29 14:49:20 +01:00
parent e951a0dd44
commit 77affbad71
19 changed files with 4664 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
FROM golang:1.14.4 AS builder
RUN git clone https://github.com/alash3al/smtp2http /go/src/build
WORKDIR /go/src/build
COPY diff.patch .
RUN git apply diff.patch
RUN go mod vendor
ENV CGO_ENABLED=0
RUN GOOS=linux go build -mod vendor -a -o smtp2http .
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /go/src/build/smtp2http /usr/bin/smtp2http
ENTRYPOINT ["smtp2http"]