Fix nginx tmp permissions (probably because of a volume). #12

This commit is contained in:
Jeroen Geusebroek
2020-10-07 20:40:10 +02:00
parent eddfa4e4dd
commit 6545667feb
2 changed files with 4 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
FROM alpine:latest
MAINTAINER Jeroen Geusebroek <me@jeroengeusebroek.nl>
ARG VERSION=1.3.2
ARG VERSION=1.3.3
ENV GID=991 UID=991

View File

@@ -1,5 +1,8 @@
#!/bin/sh
chmod o+rx /var/lib/nginx
chmod og+rx /var/lib/nginx/tmp
addgroup -g ${GID} privatebin && \
adduser -h /privatebin -H -s /bin/sh -D -G privatebin -u ${UID} privatebin