Fix dockerfile to support htaccess
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
This commit is contained in:
13
000-default.conf
Normal file
13
000-default.conf
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerAdmin webmaster@localhost
|
||||||
|
DocumentRoot /var/www/html
|
||||||
|
|
||||||
|
<Directory /var/www/html>
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
AllowOverride All
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
</VirtualHost>
|
||||||
@@ -24,9 +24,9 @@ WORKDIR "/var/www/python"
|
|||||||
RUN pip3 install --break-system-packages -r requirements.txt
|
RUN pip3 install --break-system-packages -r requirements.txt
|
||||||
WORKDIR "/var/www/html"
|
WORKDIR "/var/www/html"
|
||||||
# Gives apache the right settings
|
# Gives apache the right settings
|
||||||
# COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
|
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||||
# COPY apache2.conf /etc/apache2/apache2.conf
|
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
|
RUN a2ensite 000-default.conf
|
||||||
COPY start.sh /start.sh
|
COPY start.sh /start.sh
|
||||||
RUN chmod +x /start.sh
|
RUN chmod +x /start.sh
|
||||||
CMD ["/start.sh"]
|
CMD ["/start.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user