### ### Meta Information ### FROM localhost/debian # deploy options # -p (port) and -v (volume) both go host:container LABEL deployopts="\ -p 25:25 \ -p 465:465 \ -p 143:143 \ -p 993:993" # Build Variables # uid that the files owner user should have ARG FILESUID=5000 ### ### General Setup ### # install packages we want RUN apt update -y && apt install -y postfix dovecot-imapd ### ### 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/