diff --git a/Dockerfile b/Dockerfile index c59bc55..be6a111 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,8 @@ RUN apk upgrade --update --available && \ bash \ vim \ supervisor \ - && rm -f /var/cache/apk/* + && rm -f /var/cache/apk/* \ + && chmod -R 755 /var/lib/nginx ADD www /srv/http ADD nginx.conf /etc/nginx/nginx.conf diff --git a/greptweet.service b/greptweet.service index 48b9283..b65c1c6 100644 --- a/greptweet.service +++ b/greptweet.service @@ -11,7 +11,7 @@ Requires=docker.service TimeoutStartSec=0 ExecStartPre=-/usr/bin/docker kill greptweet1 ExecStartPre=-/usr/bin/docker rm greptweet1 -ExecStart=/usr/bin/docker run --name greptweet1 -v /srv/www/greptweet.com:/srv/http/u -p 80:80 hendry/greptweet +ExecStart=/usr/bin/docker run --name greptweet1 -v /srv/www/greptweet.com:/srv/http/u -v /home/core/greptweet/www:/srv/http/ -p 80:80 hendry/greptweet ExecStop=/usr/bin/docker stop greptweet1 [Install] diff --git a/www/index.php b/www/index.php index e0be99a..d45d696 100644 --- a/www/index.php +++ b/www/index.php @@ -24,18 +24,11 @@ -

Tutorial video: - -

-