wordpress with sqlite for Japanese.
1.8K
FROM ubuntu:trusty
MAINTAINER mnagaku <[email protected]>
RUN echo "Asia/Tokyo" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C
ENV LC_ALL en_US.UTF-8
RUN sed -i".bak" -e 's/\/\/archive.ubuntu.com/\/\/ftp.jaist.ac.jp/g' /etc/apt/sources.list &&\
apt-get update && apt-get upgrade -y &&\
apt-get -y install wget nginx php5-fpm php-apc php5-gd php5-sqlite unzip &&\
apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
RUN echo 'server {\n listen 80 default_server;\n listen [::]:80 default_server ipv6only=on;\n\n root /var/www;\n index index.html index.php;\n\n # Make site accessible from http://localhost/\n server_name localhost;\n\n location / {\n try_files $uri $uri/ /index.php;\n }\n\n location ~ /(data|conf|bin|inc)/ {\n deny all;\n }\n\n location ~ /\.ht {\n deny all;\n }\n\n location ~ \.php$ {\n fastcgi_split_path_info ^(.+\.php)(/.+)$;\n # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini\n\n fastcgi_pass unix:/var/run/php5-fpm.sock;\n fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n fastcgi_index index.php;\n include fastcgi_params;\n }\n}\n' > /etc/nginx/sites-available/default && echo "cgi.fix_pathinfo = 0;" >> /etc/php5/fpm/php.ini
RUN wget https://ja.wordpress.org/wordpress-4.0-ja.tar.gz &&\
tar xvzf wordpress-4.0-ja.tar.gz &&\
mkdir /var/www &&\
mv wordpress /var/www &&\
rm -f wordpress-4.0-ja.tar.gz &&\
wget https://downloads.wordpress.org/plugin/sqlite-integration.1.7.zip &&\
unzip sqlite-integration.1.7.zip &&\
mv sqlite-integration /var/www/wordpress/wp-content/plugins &&\
cp /var/www/wordpress/wp-content/plugins/sqlite-integration/db.php /var/www/wordpress/wp-content &&\
mv /var/www/wordpress/wp-config-sample.php /var/www/wordpress/wp-config.php &&\
rm -f sqlite-integration.1.7.zip &&\
chown -R www-data:www-data /var/www
EXPOSE 80
CMD /usr/sbin/php5-fpm && nginx && sleep 15m && rm -f /var/www/wordpress/wp-admin/install.php ; tail -f /dev/null
Content type
Image
Digest
sha256:465385498…
Size
93.2 MB
Last updated
almost 11 years ago
docker pull mnagaku/wordpress-ja