Sign inSign up

mnagaku/drawws

By mnagaku

•Updated almost 11 years ago

drawing workshop for children.

Image
0

1.1K

mnagaku/drawws repository overview

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 echo "deb http://us.archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list && echo "deb http://us.archive.ubuntu.com/ubuntu trusty-security main universe" >> /etc/apt/sources.list && apt-get update && apt-get upgrade -y
RUN apt-get -y install wget nginx php5-fpm php-apc php5-gd php5-sqlite graphviz rhino
RUN 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 && echo "daemon off;" >> /etc/nginx/nginx.conf

RUN wget --no-check-certificate https://googledrive.com/host/0B4r-xhiV8R5xb2ZyTGxoWXVSTVE -O drawws.tar.gz &&\
    tar xvzf drawws.tar.gz &&\
    mkdir /var/www &&\
    mv drawws /var/www &&\
    rm -f drawws.tar.gz &&\
    chown -R www-data:www-data /var/www

EXPOSE 80

CMD /usr/sbin/php5-fpm && nginx

Tag summary

Content type

Image

Digest

sha256:95a6f4933…

Size

129.3 MB

Last updated

almost 11 years ago

docker pull mnagaku/drawws