Dockerfile 581 Bytes
Newer Older
ale's avatar
ale committed
1
# Stage 1: build the tiny smtp server
ale's avatar
ale committed
2
FROM golang:latest AS build
ale's avatar
ale committed
3
4
5
6
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
# Stage 2: build the final container
ale's avatar
ale committed
9
FROM registry.git.autistici.org/ai3/docker/apache2-base:buster
10
COPY start.sh /start.sh
ale's avatar
ale committed
11
COPY build.sh /tmp/build.sh
ale's avatar
ale committed
12
COPY ai-lurker-ui.patch /tmp/ai-lurker-ui.patch
ale's avatar
ale committed
13
COPY conf/ /etc/
ale's avatar
ale committed
14
COPY --from=build /go/src/smtpd /usr/bin/smtpd
ale's avatar
ale committed
15
16
RUN /tmp/build.sh && rm /tmp/build.sh /tmp/ai-lurker-ui.patch
COPY logo.png /var/lib/lurker-www-orig/logo.png
ale's avatar
ale committed
17
ENTRYPOINT ["/usr/local/bin/chaperone"]
ale's avatar
ale committed
18