mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-27 08:20:32 +02:00
Update Dockerfile
This commit is contained in:
@@ -29,9 +29,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Change data folder
|
# Change data folder
|
||||||
sed -i "s|/fgc|/data|g" /usr/local/bin/docker-entrypoint.sh && \
|
sed -i "s|/fgc|/data|g" /usr/local/bin/docker-entrypoint.sh
|
||||||
# Run scripts only once
|
|
||||||
sed -i "1a if [ -f /done ]; then exit 0; fi && touch /done" /entrypoint.sh
|
|
||||||
# Choose elements to run
|
# Choose elements to run
|
||||||
#sed -i 's|"$@"|"$(bashio::config "CMD_ARGUMENTS")"|g' /usr/local/bin/docker-entrypoint.sh && \
|
#sed -i 's|"$@"|"$(bashio::config "CMD_ARGUMENTS")"|g' /usr/local/bin/docker-entrypoint.sh && \
|
||||||
# Run with bashio
|
# Run with bashio
|
||||||
@@ -79,6 +77,12 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
################
|
################
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
# Change data folder
|
||||||
|
sed -i "1a /./entrypoint.sh" /usr/local/bin/docker-entrypoint.sh && \
|
||||||
|
# Run scripts only once
|
||||||
|
sed -i "1a if [ -f /done ]; then exit 0; fi && touch /done" /entrypoint.sh
|
||||||
|
|
||||||
#RUN chmod 777 /entrypoint.sh
|
#RUN chmod 777 /entrypoint.sh
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
#ENTRYPOINT [ "/usr/bin/env" ]
|
#ENTRYPOINT [ "/usr/bin/env" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user