mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update Dockerfile
This commit is contained in:
@@ -27,8 +27,14 @@ RUN apk add --no-cache \
|
||||
# Set config directory
|
||||
&& sed -i 's|/config|/config/ubooquity|g' /etc/cont-init.d/30-config \
|
||||
&& sed -i 's|/config|/config/ubooquity|g' /etc/services.d/ubooquity/run \
|
||||
# Set default directory
|
||||
&& sed -i 's|/files|/share/ubooquity/files|g' /defaults/preferences.json \
|
||||
&& sed -i 's|/comics|/share/ubooquity/comics|g' /defaults/preferences.json \
|
||||
&& sed -i 's|/books|/share/ubooquity/books|g' /defaults/preferences.json \
|
||||
&& mkdir -p /share/ubooquity/files /share/ubooquity/comics /share/ubooquity/books \
|
||||
# Allow maximum memory setting
|
||||
&& sed -i 's|bash|bashio|g' /etc/services.d/ubooquity/run \
|
||||
&& sed -i 's|{MAXMEM:-512}|(bashio::config "maxmem")|g' /etc/services.d/ubooquity/run
|
||||
|
||||
VOLUME [ "/data" ]
|
||||
VOLUME [ "/share" ]
|
||||
|
||||
Reference in New Issue
Block a user