24 lines
976 B
Docker
24 lines
976 B
Docker
# Piwigo Docker Image
|
|
# Based on official Piwigo image - minimal customization
|
|
|
|
FROM piwigo/piwigo:latest
|
|
|
|
# Install additional tools for maintenance (Alpine uses apk)
|
|
RUN apk add --no-cache \
|
|
mariadb-client \
|
|
rsync
|
|
|
|
# Set recommended PHP settings
|
|
RUN mkdir -p /usr/local/etc/php/conf.d && \
|
|
echo 'memory_limit = 512M' > /usr/local/etc/php/conf.d/piwigo-custom.ini && \
|
|
echo 'max_execution_time = 300' >> /usr/local/etc/php/conf.d/piwigo-custom.ini && \
|
|
echo 'upload_max_filesize = 100M' >> /usr/local/etc/php/conf.d/piwigo-custom.ini && \
|
|
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
|
|
|
|
# Set default timezone to avoid TZ error in s6-overlay
|
|
ENV TZ=UTC
|
|
|
|
# Copy custom startup script to s6 init directory (runs during container init)
|
|
COPY docker-startup.sh /etc/cont-init.d/99-custom-startup
|
|
RUN chmod +x /etc/cont-init.d/99-custom-startup |