mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
fix docker permission issues
Signed-off-by: Adrian Gebhart <adrian@pestotoast.de>
This commit is contained in:
parent
3f672595ea
commit
2371dfd296
3 changed files with 19 additions and 23 deletions
|
|
@ -75,14 +75,8 @@ RUN chmod +x /usr/bin/start.sh; \
|
|||
chmod +r /Caddyfile; \
|
||||
chmod +x /cron.sh
|
||||
|
||||
# add docker group
|
||||
RUN groupadd -g 998 docker && \
|
||||
usermod -aG docker www-data
|
||||
|
||||
# Give root a random password
|
||||
RUN echo "root:$(openssl rand -base64 12)" | chpasswd
|
||||
|
||||
USER www-data
|
||||
|
||||
ENTRYPOINT ["start.sh"]
|
||||
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue