Fix dockerfile to support htaccess

Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
This commit is contained in:
2026-01-12 15:22:04 -05:00
parent 2309e1c4d6
commit f751d19eff
2 changed files with 15 additions and 2 deletions

13
000-default.conf Normal file
View 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>

View File

@@ -24,9 +24,9 @@ WORKDIR "/var/www/python"
RUN pip3 install --break-system-packages -r requirements.txt
WORKDIR "/var/www/html"
# Gives apache the right settings
# COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
# COPY apache2.conf /etc/apache2/apache2.conf
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
RUN a2enmod rewrite
RUN a2ensite 000-default.conf
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/start.sh"]