Update apps/home-assistant/Dockerfile
This commit is contained in:
parent
2a7c45a033
commit
047a26be81
1 changed files with 9 additions and 1 deletions
|
@ -34,6 +34,7 @@ RUN \
|
||||||
bluez-libs \
|
bluez-libs \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
catatonit \
|
catatonit \
|
||||||
|
tini \
|
||||||
coreutils \
|
coreutils \
|
||||||
cups-libs \
|
cups-libs \
|
||||||
curl \
|
curl \
|
||||||
|
@ -99,10 +100,17 @@ RUN \
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
# Ensure permissions for entrypoint
|
||||||
|
RUN chmod +x /entrypoint.sh \
|
||||||
|
&& chmod +x /usr/bin/catatonit \
|
||||||
|
&& chmod +x /sbin/tini
|
||||||
|
|
||||||
USER nobody:nogroup
|
USER nobody:nogroup
|
||||||
WORKDIR /config
|
WORKDIR /config
|
||||||
VOLUME ["/config"]
|
VOLUME ["/config"]
|
||||||
|
|
||||||
|
# Use tini as fallback if catatonit fails
|
||||||
ENTRYPOINT ["/usr/bin/catatonit", "--", "/entrypoint.sh"]
|
ENTRYPOINT ["/usr/bin/catatonit", "--", "/entrypoint.sh"]
|
||||||
|
CMD ["/sbin/tini", "--", "/entrypoint.sh"]
|
||||||
|
|
||||||
LABEL org.opencontainers.image.source="https://github.com/home-assistant/core"
|
LABEL org.opencontainers.image.source="https://github.com/home-assistant/core"
|
||||||
|
|
Loading…
Reference in a new issue