correct new dockerfle

This commit is contained in:
Dryusdan 2018-01-03 14:46:40 +01:00
parent fba70cfa8f
commit 1b4db69a93
2 changed files with 3 additions and 3 deletions

View File

@ -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" \

View File

@ -27,7 +27,9 @@ sed -i -e 's|<https>|'${HTTPS}'|' \
sed -i -e 's|<body_size>|'${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"