diff --git a/dl-downer/Dockerfile b/dl-downer/Dockerfile index c77cef2..7544806 100644 --- a/dl-downer/Dockerfile +++ b/dl-downer/Dockerfile @@ -46,6 +46,5 @@ RUN pip install --no-cache-dir -r requirements.txt RUN playwright install --with-deps RUN apt-get install -y sudo gosu -RUN rm -rf /var/lib/apt/lists/ ENTRYPOINT [ "entry.sh" ] diff --git a/dl-downer/entry.sh b/dl-downer/entry.sh index f014f2f..1e3a8c4 100644 --- a/dl-downer/entry.sh +++ b/dl-downer/entry.sh @@ -28,8 +28,8 @@ fi # Change ownership of the home directory chown -R "$PUID:$PGID" /home/myuser -chown -R myuser:mygroup /downloads -chown -R myuser:mygroup /storage_states +chown -R "$PUID:$PGID" /downloads +chown -R "$PUID:$PGID" /storage_states # Run the command as the specified user exec gosu "$PUID:$PGID" python start.py "$@"