Skip to content

Commit

Permalink
#21. Fixed www-data permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Apr 16, 2022
1 parent b23417f commit c70fa5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ RUN chmod 777 -R /root/.pyenv && chmod 777 /root
# Setup entrypoint
COPY entrypoint.sh /entrypoint.sh

# Modify a home folder to the demo.
usermod -d /var/www/demo www-data
# Granting www-data permissions in demo.
chown -R www-data:www-data /var/www/demo

RUN chmod +x entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2ctl", "-D", "FOREGROUND"]

0 comments on commit c70fa5e

Please sign in to comment.