Skip to content

Commit

Permalink
initial docker/alpine build
Browse files Browse the repository at this point in the history
  • Loading branch information
pjstevns committed Mar 17, 2019
1 parent dd6ea86 commit 363de35
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine:edge

ADD . /app
COPY docker/etc/ /etc/
WORKDIR /app
RUN apk add --no-cache libc-dev libzdb-dev gcc curl make gmime-dev=2.6.20-r0 libmhash-dev openldap-dev libsieve-dev libevent-dev bsd-compat-headers
RUN ./configure --prefix=/usr --with-ldap=/usr --with-sieve=/usr --mandir=/usr/share/man --sysconfdir=/etc/dbmail \
--localstatedir=/var/run/dbmail --with-logdir=/var/log/dbmail --infodir=/usr/share/info \
--with-jemalloc=no

RUN make && make install
CMD ["sh"]
8 changes: 8 additions & 0 deletions docker/etc/apk/repositories
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
# mhash
http://dl-cdn.alpinelinux.org/alpine/edge/testing
# gmime-2.6
http://dl-cdn.alpinelinux.org/alpine/v3.6/main
# libsieve
http://dl-cdn.alpinelinux.org/alpine/v3.0/testing

0 comments on commit 363de35

Please sign in to comment.