Update Dockerfile

This commit is contained in:
Alexandre
2023-05-30 10:36:56 +02:00
committed by GitHub
parent cefded989d
commit 084cc5680a

View File

@@ -33,9 +33,9 @@ RUN \
# Run scripts only once
sed -i "1a if [ ! -f /done ]; then /./entrypoint.sh; fi & touch /done" /usr/local/bin/docker-entrypoint.sh && \
# 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
sed -i "s|#!/bin/bash|#!/usr/bin/env bashio|g /usr/local/bin/docker-entrypoint.sh
sed -i 's|#!/bin/bash|#!/usr/bin/env bashio|g' /usr/local/bin/docker-entrypoint.sh
# Define subreaper
ENV TINI_SUBREAPER=true