From 170dda722351dac418d77a76795da20d1ba1256d Mon Sep 17 00:00:00 2001 From: Jeroen Geusebroek Date: Fri, 17 Jan 2020 11:36:26 +0100 Subject: [PATCH] Version bump and fixes #10. --- Dockerfile | 6 +++--- README.md | 2 +- entrypoint.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47441f0..b72c9ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest MAINTAINER Jeroen Geusebroek -ARG VERSION=1.3.1 +ARG VERSION=1.3.2 ENV GID=991 UID=991 @@ -41,8 +41,8 @@ COPY files/php-fpm.conf /etc/php7/php-fpm.conf COPY files/supervisord.conf /usr/local/etc/supervisord.conf COPY entrypoint.sh / -# mark dirs as volumes that need to be writable, allows running the container --read-only -VOLUME [ "/privatebin/data", "/privatebin/cfg", "/etc", "/tmp", "/var/tmp", "/run", "/var/log" ] +# Mark dirs as volumes that need to be writable, allows running the container --read-only +VOLUME [ "/privatebin/data", "/privatebin/cfg", "/etc", "/tmp", "/var/lib/nginx/tmp", "/run", "/var/log" ] EXPOSE 80 LABEL description "PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data." diff --git a/README.md b/README.md index 796db91..48dcf32 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A tiny image running [alpine](https://github.com/gliderlabs/docker-alpine) Linux ## Usage docker run --restart=always -d \ - --read-only + --read-only \ -p 0.0.0.0:80:80 \ --hostname=privatebin \ --name=privatebin \ diff --git a/entrypoint.sh b/entrypoint.sh index 101bf2d..be3772b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,5 +7,5 @@ if [ ! -f /privatebin/cfg/conf.php ]; then cp /privatebin/conf.sample.php /privatebin/cfg/conf.php fi -chown -R privatebin:privatebin /privatebin/data /var/tmp/nginx +chown -R privatebin:privatebin /privatebin/data supervisord -c /usr/local/etc/supervisord.conf