Update how env is handled
This commit is contained in:
parent
2d84ae2dd5
commit
b61aa049b5
@ -8,7 +8,7 @@ ENV MQTT_HOST=
|
|||||||
RUN pip install paho-mqtt
|
RUN pip install paho-mqtt
|
||||||
|
|
||||||
# The script itself
|
# The script itself
|
||||||
COPY ./scripts/rbn-to-mqtt /rbn-to-mqtt
|
COPY ./scripts/rbn-to-mqtt /rbn-to-mqtt.py
|
||||||
|
|
||||||
# Run config
|
# Run config
|
||||||
CMD ["python", "/rbn-to-mqtt", "${MODE}", "${MQTT_HOST}"]
|
CMD ["sh", "-c", "python /rbn-to-mqtt.py $MODE $MQTT_HOST"]
|
Loading…
x
Reference in New Issue
Block a user