Dockerfile 726 Bytes
Newer Older
1
FROM nextcloud:latest
2
MAINTAINER Marco Marinello <me@marcomarinello.it>
3
4
5
EXPOSE 80 443

RUN mkdir -p /var/www/nc_data
Marco Marinello's avatar
Marco Marinello committed
6
RUN mkdir -p /var/www/images
7
RUN chown www-data. /var/www/nc_data
Marco Marinello's avatar
Marco Marinello committed
8
RUN chown www-data. /var/www/images
9
10
11

ENV DEBIAN_FRONTEND noninteractive
RUN apt update
12
RUN apt full-upgrade -qy
Marco Marinello's avatar
Marco Marinello committed
13
14
15
RUN apt install -qy ca-certificates certbot python3-certbot-apache cron smbclient libsmbclient-dev wget libmagickwand-dev vim
RUN pecl install smbclient
RUN docker-php-ext-enable smbclient
16

Marco Marinello's avatar
Marco Marinello committed
17
18
COPY logo.png /var/www/images
COPY logo.svg /var/www/images
19
COPY configure-fuss.sh /
20
COPY crontab /etc
21
22
COPY 000-default.conf /etc/apache2/sites-available

Marco Marinello's avatar
Marco Marinello committed
23
RUN a2enmod rewrite ssl
24

25
26
ENTRYPOINT ["/configure-fuss.sh"]
CMD ["apache2-foreground"]