2017-06-12 16:45:12 +08:00
|
|
|
FROM alpine:3.6
|
|
|
|
|
|
|
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
|
|
|
|
|
|
|
RUN apk add --update --no-cache \
|
2017-12-09 20:15:24 +08:00
|
|
|
bash \
|
|
|
|
curl \
|
|
|
|
openssl \
|
|
|
|
bind-tools \
|
|
|
|
jq \
|
2017-11-16 21:57:17 +08:00
|
|
|
libressl-dev \
|
|
|
|
libbsd-dev \
|
|
|
|
libseccomp-dev \
|
2017-12-09 20:15:24 +08:00
|
|
|
mariadb-client \
|
2017-11-16 21:57:17 +08:00
|
|
|
tini \
|
|
|
|
make \
|
|
|
|
gcc \
|
|
|
|
libressl \
|
|
|
|
libc-dev \
|
2017-12-09 20:15:24 +08:00
|
|
|
redis \
|
2017-11-16 21:57:17 +08:00
|
|
|
linux-headers \
|
|
|
|
ca-certificates \
|
|
|
|
&& curl -s https://kristaps.bsd.lv/acme-client/snapshots/acme-client-portable.tgz | tar xfvz - \
|
|
|
|
&& cd acme-client-* \
|
|
|
|
&& sed -i 's/LE-SA-v1.1.1-August-1-2016.pdf/LE-SA-v1.2-November-15-2017.pdf/g' main.c \
|
|
|
|
&& make \
|
|
|
|
&& make install \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -rf acme-client-* \
|
|
|
|
&& apk del libressl-dev libbsd-dev libseccomp-dev libc-dev linux-headers
|
2017-06-12 16:45:12 +08:00
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /srv/docker-entrypoint.sh
|
|
|
|
|
2017-10-21 16:08:14 +08:00
|
|
|
CMD ["/sbin/tini", "-g", "--", "/srv/docker-entrypoint.sh"]
|