opensmtpd-alpine-docker/Dockerfile
Memiks 85fdb56e87
Some checks failed
continuous-integration/drone/push Build is failing
compile opensmtpd
2019-12-06 12:21:37 +09:00

36 lines
1023 B
Docker

FROM debian
LABEL Maintainer="Memiks <contact@memiks.fr>" \
Description="Lightweight container with OpenSMTPD on Debian Linux."
# Install packages
RUN apt -qy update
RUN apt-get install -qy \
build-essential linux-libc-dev \
autoconf automake autoconf bison libevent-dev libasr-dev cmake libtool pkg-config \
git curl gawk tar bzip2 ncompress xz-utils tree wget
WORKDIR /tmp
ENV LIBRESSLVERSION=libressl-3.0.2
RUN wget -O ${LIBRESSLVERSION}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${LIBRESSLVERSION}.tar.gz
RUN tar xf ${LIBRESSLVERSION}.tar.gz
WORKDIR /tmp/${LIBRESSLVERSION}
RUN ./configure --prefix=/usr/local/libressl --with-openssldir=/usr/local/libressl
RUN make && make install
WORKDIR /tmp
RUN git clone -b portable git://github.com/OpenSMTPD/OpenSMTPD.git opensmtpd
WORKDIR /tmp/opensmtpd
RUN ./bootstrap \
&& ./configure \
--with-libssl=/usr/local/libressl
RUN make && make install
# Override shell for bash-y debugging goodness
SHELL ["/bin/bash", "-exc"]
WORKDIR /tmp