Set permissions for /var/audio
Currently we do mount /var/audio
when installing the engine-recorder via docker and start the container with -u $UID:$GID
. But due to permissions inside docker being managed the same as permissions without docker we need to change the permissions (stackoverflow) after we created those directories. A good way in my opinion would be to use the same approach as tank does:
RUN set -e \
&& mkdir -p /etc/aura /srv/audio /srv/import-temp \
&& adduser --home /srv --no-create-home --system --uid 1000 --group app \
&& chown 1000:1000 /srv/audio /srv/import-temp
VOLUME /srv/audio
VOLUME /srv/import-temp
ENV TANK_STORE_PATH=/srv/audio TANK_IMPORTER_TEMP_PATH=/srv/import-temp
USER app
Another approach could be to use named volumes.
Edited by Ole Binder