From b61aa049b5accc31f36a3d34d9cfd9b90cb29115 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 21 Nov 2024 15:19:22 -0500 Subject: [PATCH] Update how env is handled --- docker/containers/rbn-to-mqtt.dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/containers/rbn-to-mqtt.dockerfile b/docker/containers/rbn-to-mqtt.dockerfile index a42bfd1..16d5e12 100644 --- a/docker/containers/rbn-to-mqtt.dockerfile +++ b/docker/containers/rbn-to-mqtt.dockerfile @@ -8,7 +8,7 @@ ENV MQTT_HOST= RUN pip install paho-mqtt # The script itself -COPY ./scripts/rbn-to-mqtt /rbn-to-mqtt +COPY ./scripts/rbn-to-mqtt /rbn-to-mqtt.py # Run config -CMD ["python", "/rbn-to-mqtt", "${MODE}", "${MQTT_HOST}"] \ No newline at end of file +CMD ["sh", "-c", "python /rbn-to-mqtt.py $MODE $MQTT_HOST"] \ No newline at end of file