Skip to content

Commit

Permalink
Update config in Dockerfile (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM authored Dec 16, 2023
1 parent 3c86c1f commit 769da80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ FROM debian:bullseye-slim
COPY --from=builder /usr/local/cargo/bin/hms-mqtt-publish /usr/local/bin/hms-mqtt-publish

# Generate the config file from given environment variables
RUN echo "inverter_host = \"$INVERTER_HOST\" \n\n[home_assistent] \nhost = \"$MQTT_BROKER_HOST\"\nusername = \"$MQTT_USERNAME\"\npassword = \"$MQTT_PASSWORD\"\nport = $MQTT_PORT\n" > config.toml
RUN echo "inverter_host = \"$INVERTER_HOST\" \n\n[home_assistant] \nhost = \"$MQTT_BROKER_HOST\"\nusername = \"$MQTT_USERNAME\"\npassword = \"$MQTT_PASSWORD\"\nport = $MQTT_PORT\n" > config.toml

# Run the application
CMD hms-mqtt-publish

0 comments on commit 769da80

Please sign in to comment.