Got things in working order.

parent cc1e3161
......@@ -40,13 +40,17 @@ RUN echo "**** install packages ****" && \
re2c \
unzip \
wget && \
echo "**** download piwigo ****" && \
PIWIGO_RELEASE=$(curl -sX GET "https://api.github.com/repos/Piwigo/Piwigo/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]') && \
mkdir /piwigo && \
curl -o /piwigo/piwigo.zip -L "http://piwigo.org/download/dlcounter.php?code=${PIWIGO_RELEASE}" && \
apt-get clean && \
rm -r /var/lib/apt/lists/*
RUN PIWIGO_RELEASE=$(curl -sX GET "https://api.github.com/repos/Piwigo/Piwigo/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]') && \
curl -o /tmp/piwigo.zip -L "http://piwigo.org/download/dlcounter.php?code=${PIWIGO_RELEASE}" && \
unzip -q /tmp/piwigo.zip -d /tmp && \
mkdir -p /config/www/gallery && \
mv /tmp/piwigo/* /config/www/gallery && \
rm -rf /tmp/piwigo*
RUN sed -i 's/^[[:space:]]*[;]*[[:space:]]*memory_limit[[:space:]]*=[[:space:]]*.*/memory_limit = 256M/' /etc/php/7.3/fpm/php.ini && \
sed -i 's/^[[:space:]]*[;]*[[:space:]]*cgi.fix_pathinfo[[:space:]]*=[[:space:]]*.*/cgi.fix_pathinfo = 0/' /etc/php/7.3/fpm/php.ini && \
sed -i 's/^[[:space:]]*[;]*[[:space:]]*upload_max_filesize[[:space:]]*=[[:space:]]*.*/upload_max_filesize = 512M/' /etc/php/7.3/fpm/php.ini && \
......@@ -59,4 +63,4 @@ COPY 39-start-fpm.sh /docker-entrypoint.d/
# ports and volumes
EXPOSE 80 443
VOLUME ["/config", "/pictures"]
VOLUME ["/config/log", "/config/www/gallery/galleries/", "/config/www/gallery/_data/", "/config/www/gallery/upload/", "/config/www/gallery/plugins/", "/config/www/gallery/themes/", "/config/www/gallery/template-extension/", "/config/www/gallery/local/", "/pictures"]
......@@ -22,34 +22,3 @@ server {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
}
}
#server {
# listen 80 default_server;
#
# listen 443 ssl;
#
# root /config/www/gallery;
# index index.html index.htm index.php;
#
# server_name _;
#
# ssl_certificate /config/keys/cert.crt;
# ssl_certificate_key /config/keys/cert.key;
#
# client_max_body_size 0;
#
# location / {
# try_files $uri $uri/ /index.html /index.php?$args =404;
# }
#
# location ~ \.php$ {
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
# # With php5-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php5-fpm:
# #fastcgi_pass unix:/var/run/php5-fpm.sock;
# fastcgi_index index.php;
# include /etc/nginx/fastcgi_params;
#
# }
#}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment