-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
39 lines (30 loc) · 858 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ARG ARCH=
# Pull base image
FROM ubuntu:latest
# Avoid warnings by switching to noninteractive
ARG DEBIAN_FRONTEND=noninteractive
# Labels
LABEL MAINTAINER="https://github.com/dbsqp/"
# Setup external package-sources
RUN apt-get update && apt-get install -y \
git \
cron \
tzdata \
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 oauthlib requests requests-oauth requests_oauthlib typing_extensions arrow pydantic==1.10.12
# Environment vars
ENV PYTHONIOENCODING=utf-8
# submodule update
RUN git clone https://github.com/dbsqp/python_withings_api
# Copy files
COPY withings2influxdb.py /
COPY enterypoint.sh /
# Run
CMD ["/bin/bash","/enterypoint.sh"]