aaaa
This commit is contained in:
13
2025/lake/web/web-magicauth/smtp2http/Dockerfile
Normal file
13
2025/lake/web/web-magicauth/smtp2http/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user