Fix apache rewrite

This commit is contained in:
Jakob Kordež 2023-09-24 17:52:13 +02:00
parent 5fb8b48eea
commit 47b5df95bc

View File

@ -12,6 +12,9 @@ RUN yarn build
FROM httpd:2.4-alpine
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf && \
sed -i 's#AllowOverride [Nn]one#AllowOverride All#' /usr/local/apache2/conf/httpd.conf
COPY --from=build /app/dist/ /usr/local/apache2/htdocs/
COPY .htaccess /usr/local/apache2/htdocs/.htaccess