|
@ -20,39 +20,4 @@ ARG FILESUID=5000 |
|
|
### |
|
|
### |
|
|
|
|
|
|
|
|
# install packages we want |
|
|
# install packages we want |
|
|
RUN apt update -y && apt install -y postfix dovecot-imapd |
|
|
RUN apt update -y && apt install -y postfix dovecot-imapd dovecot-lmtpd |
|
|
|
|
|
|
|
|
### |
|
|
|
|
|
### Apache |
|
|
|
|
|
### |
|
|
|
|
|
|
|
|
|
|
|
# enable modules we need |
|
|
|
|
|
RUN a2enmod php${phpv} |
|
|
|
|
|
|
|
|
|
|
|
# copy site config |
|
|
|
|
|
COPY assets/site.conf /etc/apache2/sites-available/ |
|
|
|
|
|
WORKDIR /etc/apache2/sites-enabled |
|
|
|
|
|
RUN rm 000-default.conf && ln -s ../sites-available/site.conf |
|
|
|
|
|
|
|
|
|
|
|
### |
|
|
|
|
|
### browserStartpage |
|
|
|
|
|
### |
|
|
|
|
|
|
|
|
|
|
|
# download app |
|
|
|
|
|
WORKDIR /root |
|
|
|
|
|
RUN wget https://github.com/saschadiercks/browserStartpage/archive/master.zip && \ |
|
|
|
|
|
echo "Unzipping ..." && \ |
|
|
|
|
|
unzip -q master.zip && \ |
|
|
|
|
|
mv browserStartpage-master/htdocs /var/www/html/startpage && \ |
|
|
|
|
|
chown -R www-data:www-data /var/www/html && \ |
|
|
|
|
|
rm -r browserStartpage-master |
|
|
|
|
|
|
|
|
|
|
|
# copy config |
|
|
|
|
|
WORKDIR /var/www/html |
|
|
|
|
|
COPY --chown=www-data:www-data assets/config.php startpage/config/config.php |
|
|
|
|
|
COPY --chown=www-data:www-data assets/data.json startpage/data/data.json |
|
|
|
|
|
|
|
|
|
|
|
# copy thumbnails |
|
|
|
|
|
COPY --chown=www-data:www-data assets/thumbnails/ startpage/assets/thumbnails/ |
|
|
|
|
|
# copy wallpaper |
|
|
|
|
|
COPY --chown=www-data:www-data assets/wallpaper/ startpage/assets/wallpaper/ |
|
|
|