aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorArthur Moore <Arthur.Moore.git@cd-net.net>2019-02-19 04:00:47 -0500
committerArthur Moore <Arthur.Moore.git@cd-net.net>2019-02-19 04:00:47 -0500
commita682980385c3bef3395c15858d1ef8e0bef585d4 (patch)
treee7171a780844e2fc94b067f5faf49ecc7588bc06 /Dockerfile
parentAdd a Dockerfile (diff)
downloadOpenSMTPD-a682980385c3bef3395c15858d1ef8e0bef585d4.tar.xz
OpenSMTPD-a682980385c3bef3395c15858d1ef8e0bef585d4.zip
Use Dockerfile best practices
Diffstat (limited to '')
-rw-r--r--Dockerfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index d02afed8..2b6aeb45 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,7 @@
FROM alpine:3.9 as build
+
+WORKDIR /opensmtpd
+
RUN apk add --no-cache \
ca-certificates \
wget \
@@ -21,14 +24,13 @@ COPY . /opensmtpd
#build opensmtpd
RUN rm -r /usr/local/
-RUN cd /opensmtpd && \
- ./bootstrap && \
+RUN ./bootstrap && \
./configure --with-gnu-ld --sysconfdir=/etc --with-path-empty=/var/lib/opensmtpd/empty/ && \
make && \
make install
FROM alpine:3.9
-MAINTAINER Arthur Moore <Arthur.Moore.git@cd-net.net>
+LABEL maintainer="Arthur Moore <Arthur.Moore.git@cd-net.net>"
EXPOSE 25
EXPOSE 465