FROM ishakuta/docker-nginx-php5
MAINTAINER Arturo Volpe <[email protected]>
RUN apt-get update && apt-get install -y php5-gd
WORKDIR /opt
RUN curl -O https://codeload.github.com/chrisiaut/pictshare/zip/master
RUN apt-get install -y unzip
RUN unzip master
RUN mv pictshare-master pictshare && rm master
RUN apt-get install -y php5-fpm
WORKDIR /opt/pictshare
RUN cp inc/example.config.inc.php inc/config.inc.php
RUN chmod +x bin/ffmpeg
ADD pictshare.conf /etc/nginx/sites-available/default
ADD pictshare.conf /etc/nginx/sites-enabled/default
RUN chown -R www-data:www-data /opt/pictshare
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /opt/pictshare;
index index.html index.php;
# Make site accessible from http://localhost/
server_name localhost;
location / {
try_files $uri $uri/ /index.php?url=$request_uri; # instead of htaccess mod_rewrite
}
location ~ \.php {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
}
location ~ /(upload|tmp|bin) {
deny all;
return 404;
}
}
However, I has a question about multiple instances of pictshare using a single data folder, is this posible with the current implementation of pictshare?