mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 00:55:58 +02:00
Update Dockerfile
This commit is contained in:
@@ -32,22 +32,23 @@ RUN apt-get update \
|
|||||||
# copy local files
|
# copy local files
|
||||||
COPY rootfs/ /
|
COPY rootfs/ /
|
||||||
|
|
||||||
#RUN \
|
RUN \
|
||||||
#################
|
#################
|
||||||
# Correct image #
|
# Correct image #
|
||||||
#################
|
#################
|
||||||
# Allow UID and GID setting
|
# Allow UID and GID setting
|
||||||
# sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
||||||
# && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
|
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
|
||||||
# && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
|
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
|
||||||
# Allow external options
|
# Allow external options
|
||||||
# && cat /etc/services.d/paperless/run >> /run \
|
&& cat /etc/services.d/paperless/run >> /run \
|
||||||
# && cat /run > /etc/services.d/paperless/run \
|
&& cat /run > /etc/services.d/paperless/run \
|
||||||
#&& sed -i 's/bash/bashio/g' /etc/services.d/paperless/run \
|
#&& sed -i 's/bash/bashio/g' /etc/services.d/paperless/run \
|
||||||
#&& sed -i '3 a\ export PAPERLESS_OCR_LANGUAGE=$(bashio::config "PAPERLESS_OCR_LANGUAGE")' /etc/services.d/paperless/run \
|
#&& sed -i '3 a\ export PAPERLESS_OCR_LANGUAGE=$(bashio::config "PAPERLESS_OCR_LANGUAGE")' /etc/services.d/paperless/run \
|
||||||
#&& sed -i '3 a\ export PAPERLESS_OCR_MODE=$(bashio::config "PAPERLESS_OCR_MODE")' /etc/services.d/paperless/run \
|
#&& sed -i '3 a\ export PAPERLESS_OCR_MODE=$(bashio::config "PAPERLESS_OCR_MODE")' /etc/services.d/paperless/run \
|
||||||
# Change config location
|
# Change config location
|
||||||
# && sed -i "s|/config|$PAPERLESS_DATA_DIR|g" /etc/cont-init.d/*
|
&& sed -i "s|/config|$PAPERLESS_DATA_DIR|g" /etc/cont-init.d/10-adduser \
|
||||||
|
&& sed -i "s|/config|$PAPERLESS_DATA_DIR|g" /etc/cont-init.d/50-config
|
||||||
|
|
||||||
### LABELS
|
### LABELS
|
||||||
ARG BUILD_ARCH
|
ARG BUILD_ARCH
|
||||||
|
|||||||
Reference in New Issue
Block a user