Dockerfile 634 Bytes
Newer Older
ale's avatar
ale committed
1
2
FROM debian:stable AS build

godog's avatar
godog committed
3
ENV RC_VERSION=1.4.7
ale's avatar
ale committed
4
5
6
7
8

ADD . /build
RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends bash curl make patch rsync default-jre-headless wget unzip
RUN /build/install-roundcube --version=${RC_VERSION} --destdir=/build/src build && echo ${RC_VERSION} > /build/src/.rc_version

godog's avatar
godog committed
9
FROM registry.git.autistici.org/ai3/docker/apache2-php-base:buster
ale's avatar
ale committed
10
11
12

COPY conf /tmp/conf
COPY build.sh /tmp/build.sh
ale's avatar
ale committed
13
COPY start.sh /start.sh
ale's avatar
ale committed
14
COPY --from=build /build/src /var/www/webmail
ale's avatar
ale committed
15
16
17
RUN /tmp/build.sh && rm -fr /tmp/build.sh /tmp/conf

ENTRYPOINT ["/usr/local/bin/chaperone"]