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