remove ssl from container and use port 80

This commit is contained in:
GotPPay
2018-07-15 13:52:18 +02:00
parent e484c6dd54
commit 397fd69cfe
3 changed files with 1 additions and 145 deletions

View File

@@ -8,13 +8,5 @@ WORKDIR /var/www/html
RUN ln -s ../html api
COPY docker/apache/apache2.conf /etc/apache2/
COPY docker/apache/default-ssl.conf /etc/apache2/sites-available/default-ssl.conf
RUN chown -R www-data:www-data /var/www/html
RUN openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 \
-subj "/C=BA/ST=FBiH/L=Sarajevo/O=Saburly/CN=localhost" \
-keyout /etc/ssl/private/selfsigned.key -out /etc/ssl/certs/selfsigned.crt
WORKDIR /etc/apache2/sites-enabled
RUN ln -s ../sites-available/default-ssl.conf default-ssl.conf
RUN chown -R www-data:www-data /var/www/html