Ajout du support HTTPS + support de l'exécution du script rundocker.sh depuis n'importe quel répertoire
This commit is contained in:
+6
-3
@@ -1,9 +1,12 @@
|
|||||||
FROM debian:testing
|
FROM debian:11
|
||||||
RUN apt update -y && apt install -y --no-install-recommends apache2 php libapache2-mod-php sqlite3 php-sqlite3 && \
|
RUN apt update -y && apt install -y --no-install-recommends openssl apache2 php libapache2-mod-php sqlite3 php-sqlite3 && \
|
||||||
apt clean && \
|
apt clean && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
mkdir -p /etc/postfix/ && \
|
mkdir -p /etc/postfix/ && \
|
||||||
rm /var/www/html/index.html
|
rm /var/www/html/index.html && \
|
||||||
|
openssl req -x509 -nodes -days 5000 -newkey rsa:4096 -out /etc/ssl/certs/ssl-cert-snakeoil.pem -keyout /etc/ssl/private/ssl-cert-snakeoil.key -subj "/C=FR/ST=Paris/L=Paris/O=Courtail/OU=Courtail/CN=127.0.0.1" && \
|
||||||
|
a2enmod ssl && \
|
||||||
|
a2ensite default-ssl.conf
|
||||||
COPY . /var/www/html/
|
COPY . /var/www/html/
|
||||||
RUN mv /var/www/html/outils/conf/php.ini /etc/php/7.4/apache2 && \
|
RUN mv /var/www/html/outils/conf/php.ini /etc/php/7.4/apache2 && \
|
||||||
mv /var/www/html/outils/conf/apache2.conf /etc/apache2/ && \
|
mv /var/www/html/outils/conf/apache2.conf /etc/apache2/ && \
|
||||||
|
|||||||
+4
-2
@@ -1,3 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
docker build -t courtail ../
|
|
||||||
docker run -it -p 8080:80 courtail:latest
|
dockerfile="$(dirname ${0})/../"
|
||||||
|
docker build -t courtail "${dockerfile}"
|
||||||
|
docker run -it -p 8080:80 -p 4443:443 courtail:latest
|
||||||
Reference in New Issue
Block a user