Dockerfile 437 Bytes
Newer Older
ale's avatar
ale committed
1
2
3
4
5
6
# Stage 1: build the tiny smtp server
FROM golang:1.12.7 AS build
WORKDIR /go/src
RUN go get -d github.com/chrj/smtpd
COPY smtpd.go .
RUN go build -o smtpd smtpd.go
ale's avatar
ale committed
7

ale's avatar
ale committed
8
9
# Stage 2: build the final container
FROM registry.git.autistici.org/ai3/docker/apache2-base:master
ale's avatar
ale committed
10
11
COPY build.sh /tmp/build.sh
COPY conf/ /etc/
ale's avatar
ale committed
12
COPY --from=build /go/src/smtpd /usr/bin/smtpd
ale's avatar
ale committed
13
RUN /tmp/build.sh && rm /tmp/build.sh
ale's avatar
ale committed
14
ENTRYPOINT ["/usr/local/bin/chaperone"]
ale's avatar
ale committed
15