30 lines
792 B
Docker
30 lines
792 B
Docker
# use latest roundcubemail container
|
|
FROM docker.io/roundcube/roundcubemail:1.6.9-apache
|
|
|
|
# build cache date argument trick
|
|
ARG GITEA_SHA=some_sha
|
|
RUN echo $GITEA_SHA
|
|
|
|
# prepare basic stuff
|
|
RUN set -e && ln -sf bash /bin/sh
|
|
RUN set -e \
|
|
&& apt -y update \
|
|
&& apt -y upgrade \
|
|
&& apt -y install --no-install-recommends --no-install-suggests ca-certificates git \
|
|
&& apt -y autoremove \
|
|
&& apt clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# install plugins using composer
|
|
RUN set -e \
|
|
&& /usr/bin/composer \
|
|
--working-dir=/usr/src/roundcubemail/ \
|
|
--prefer-dist \
|
|
--prefer-stable \
|
|
--update-no-dev \
|
|
--no-interaction \
|
|
--optimize-autoloader \
|
|
--quiet \
|
|
require \
|
|
johndoh/contextmenu
|