use gitlab docker registry

This commit is contained in:
Sebastian Hugentobler 2017-09-22 13:14:50 +02:00
parent 7d24cae345
commit a57bcd1b35
9 changed files with 25 additions and 42 deletions

View file

@ -1,21 +1,8 @@
FROM quay.io/thallian/confd-env:latest
FROM registry.gitlab.com/thallian/docker-confd-env:master
RUN apk add --no-cache dovecot dovecot-ldap libressl ssmtp g++ openldap-dev dovecot-dev make tar
ADD i_zero.patch /usr/include/dovecot/i_zero.patch
WORKDIR /usr/include/dovecot
RUN patch -p1 < i_zero.patch
RUN rm /usr/include/dovecot/i_zero.patch
RUN mkdir /tmp/pigeonhole
RUN wget -qO- https://pigeonhole.dovecot.org/releases/2.2/dovecot-2.2-pigeonhole-0.4.18.tar.gz | tar -xz -C /tmp/pigeonhole --strip 1
WORKDIR /tmp/pigeonhole
RUN ./configure --with-ldap=yes --with-dovecot=/usr/lib/dovecot
RUN make && make install
RUN rm -r /tmp/pigeonhole
WORKDIR /
RUN apk del g++ openldap-dev dovecot-dev make tar
RUN apk add --no-cache dovecot dovecot-ldap libressl ssmtp
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
dovecot-pigeonhole-plugin-ldap
RUN addgroup -g 1111 vmail
RUN adduser -u 1111 -h /var/lib/vmail -D -G vmail vmail