opensmtpd-alpine-docker/Dockerfile
Memiks 29adc939fe
All checks were successful
continuous-integration/drone/push Build is passing
workdir change
2019-12-06 12:17:33 +09:00

26 lines
809 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
# Override shell for bash-y debugging goodness
SHELL ["/bin/bash", "-exc"]
WORKDIR /tmp