fix docker permission issues

Signed-off-by: Adrian Gebhart <adrian@pestotoast.de>
This commit is contained in:
Adrian Gebhart
2021-12-01 12:40:51 +01:00
parent 3f672595ea
commit 2371dfd296
3 changed files with 19 additions and 23 deletions

View File

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