Only allow chown via sudo

This commit is contained in:
Matthias
2021-04-08 20:36:10 +02:00
parent 4eb251ce41
commit 644dcc1641
3 changed files with 10 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ RUN mkdir /freqtrade \
&& useradd -u 1000 -G sudo -U -m ftuser \
&& chown ftuser:ftuser /freqtrade \
# Allow sudoers
&& echo "ftuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
&& echo "ftuser ALL=(ALL) NOPASSWD: /bin/chown" >> /etc/sudoers
WORKDIR /freqtrade