Version bump and fixes #10.

This commit is contained in:
Jeroen Geusebroek
2020-01-17 11:36:26 +01:00
parent 343204579d
commit 170dda7223
3 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jeroen Geusebroek <me@jeroengeusebroek.nl> MAINTAINER Jeroen Geusebroek <me@jeroengeusebroek.nl>
ARG VERSION=1.3.1 ARG VERSION=1.3.2
ENV GID=991 UID=991 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 files/supervisord.conf /usr/local/etc/supervisord.conf
COPY entrypoint.sh / COPY entrypoint.sh /
# mark dirs as volumes that need to be writable, allows running the container --read-only # 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" ] VOLUME [ "/privatebin/data", "/privatebin/cfg", "/etc", "/tmp", "/var/lib/nginx/tmp", "/run", "/var/log" ]
EXPOSE 80 EXPOSE 80
LABEL description "PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data." LABEL description "PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data."

View File

@@ -6,7 +6,7 @@ A tiny image running [alpine](https://github.com/gliderlabs/docker-alpine) Linux
## Usage ## Usage
docker run --restart=always -d \ docker run --restart=always -d \
--read-only --read-only \
-p 0.0.0.0:80:80 \ -p 0.0.0.0:80:80 \
--hostname=privatebin \ --hostname=privatebin \
--name=privatebin \ --name=privatebin \

View File

@@ -7,5 +7,5 @@ if [ ! -f /privatebin/cfg/conf.php ]; then
cp /privatebin/conf.sample.php /privatebin/cfg/conf.php cp /privatebin/conf.sample.php /privatebin/cfg/conf.php
fi fi
chown -R privatebin:privatebin /privatebin/data /var/tmp/nginx chown -R privatebin:privatebin /privatebin/data
supervisord -c /usr/local/etc/supervisord.conf supervisord -c /usr/local/etc/supervisord.conf