forked from kiwimato/nut-influxdb-exporter
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
ARG ARCH= | ||
|
||
# Pull base image | ||
FROM ubuntu:latest | ||
|
||
# Labels | ||
LABEL MAINTAINER="https://github.com/dbsqp/" | ||
|
||
# Setup external package-sources | ||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
python3-dev \ | ||
python3-setuptools \ | ||
python3-pip \ | ||
python3-virtualenv \ | ||
--no-install-recommends && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# RUN pip install setuptools | ||
RUN pip3 install pytz influxdb-client requests | ||
|
||
# Environment vars | ||
ENV PYTHONIOENCODING=utf-8 | ||
|
||
# Copy files | ||
ADD lnetatmo.py / | ||
ADD netatmo2influxdb.py / | ||
ADD get.sh / | ||
|
||
# Run | ||
CMD ["/bin/bash","/get.sh"] |