diff --git a/Dockerfile b/Dockerfile index aed2cad..dd5ec2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,8 +38,6 @@ RUN groupadd -g 991 peertube && useradd -u 991 -g 991 --create-home peertube \ && git clone --branch develop https://github.com/Chocobozzz/PeerTube /PeerTube \ && echo "****** chown ******" \ && chown -R peertube:peertube PeerTube \ - && ls -la / \ - && ls -la /home/peertube \ && cd /PeerTube \ && echo "****** run npm install as user ******" \ && su - peertube -c "cd /PeerTube && npm install" \ diff --git a/rootfs/usr/local/bin/startup b/rootfs/usr/local/bin/startup index 79caf17..6bc8fe5 100755 --- a/rootfs/usr/local/bin/startup +++ b/rootfs/usr/local/bin/startup @@ -27,7 +27,9 @@ sed -i -e 's||'${HTTPS}'|' \ sed -i -e 's||'${BODY_SIZE}'|' /etc/nginx/sites-enabled/peertube.conf -chown -R $UID:$GID ./ +chown -R $UID:$GID /home/peertube +chown -R $UID:$GID /PeerTube + nginx if [ $# -eq 0 ]; then su - peertube -c "cd /PeerTube && NODE_ENV=production npm start"