Files
ctf/2025/lake/web/web-magicauth/smtp2http/Dockerfile
2025-11-29 14:49:20 +01:00

14 lines
374 B
Docker

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"]