-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (16 loc) · 769 Bytes
/
Dockerfile
File metadata and controls
17 lines (16 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM debian:11
RUN apt update && apt install php apache2 sqlite3 php-sqlite3 net-tools -y
RUN apt install ffmpeg exiftool -y
RUN rm /var/www/html/index.html
COPY src /var/www/html/
RUN cat /var/www/html/install/tables.sql | sqlite3 /var/www/html/db.sqlite
RUN rm -rf /var/www/html/install/
RUN chown www-data:www-data -R /var/www/html/
RUN a2ensite default-ssl
RUN a2enmod ssl
RUN a2enmod rewrite
RUN printf "<Directory /var/www/>\n AllowOverride all\n</Directory>\n" >> /etc/apache2/apache2.conf
RUN echo 'ifconfig | grep "inet"| cut -d " " -f 10| grep -v "127.0.0.1";apachectl start && tail -f /var/log/apache2/access.log' > /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN printf "\npost_max_size = 4096M\n" >> /etc/php/7.4/apache2/php.ini
ENTRYPOINT /entrypoint.sh