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 \
|
||||
ca-certificates \
|
||||
catatonit \
|
||||
tini \
|
||||
coreutils \
|
||||
cups-libs \
|
||||
curl \
|
||||
|
@ -99,10 +100,17 @@ RUN \
|
|||
|
||||
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
|
||||
WORKDIR /config
|
||||
VOLUME ["/config"]
|
||||
|
||||
# Use tini as fallback if catatonit fails
|
||||
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