Add entrypoint script to set up permissions and create storage directories
Some checks failed
Deploy Development / deploy (push) Failing after 2m11s

This commit is contained in:
Frank John Begornia
2025-12-18 13:58:13 +08:00
parent cd4c7086bf
commit 564719412b
2 changed files with 23 additions and 1 deletions

View File

@@ -69,8 +69,13 @@ RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf
# Suppress Apache ServerName warning
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
# Copy entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Expose port 80
EXPOSE 80
# Start Apache
# Use entrypoint to set up permissions before starting Apache
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["apache2-foreground"]