Entrypoint fixes

This commit is contained in:
2026-10-24 14:02:30 +03:00
parent 705e90f6e1
commit 422cb5c8ab
2 changed files with 53 additions and 5 deletions
+6 -5
View File
@@ -16,9 +16,10 @@ RUN mkdir -p /usr/local/etc/php/conf.d && \
echo 'post_max_size = 100M' >> /usr/local/etc/php/conf.d/piwigo-custom.ini && \
echo 'max_file_uploads = 50' >> /usr/local/etc/php/conf.d/piwigo-custom.ini
# Copy custom entrypoint for restore support
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Copy custom startup script (runs before main entrypoint)
COPY docker-startup.sh /usr/local/bin/docker-startup.sh
RUN chmod +x /usr/local/bin/docker-startup.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["apache2-foreground"]
# Run startup script before main entrypoint
# Use base image's entrypoint (docker-php-entrypoint)
CMD ["/usr/local/bin/docker-startup.sh"]