Entrypoint fixes
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user