forked from MyElectricalData/myelectricaldata_import
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·36 lines (28 loc) · 1010 Bytes
/
Dockerfile
File metadata and controls
executable file
·36 lines (28 loc) · 1010 Bytes
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
FROM python:3.11-slim
RUN apt-get update && \
apt-get install -y \
locales \
git \
g++ \
gcc \
libpq-dev
RUN sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen
RUN dpkg-reconfigure --frontend=noninteractive locales
RUN rm -rf /var/lib/apt/lists/*
ENV LANG fr_FR.UTF-8
ENV LC_ALL fr_FR.UTF-8
ENV TZ=Europe/Paris
RUN pip install --upgrade pip pip-tools setuptools
COPY ./app /app
RUN pip-compile -o /app/requirements.txt /app/pyproject.toml
RUN pip install -r /app/requirements.txt
RUN #pip install git+https://github.com/influxdata/influxdb-client-python.git@master
RUN mkdir /data
RUN mkdir /log
#RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
#RUN apt-get install wget
#RUN /bin/wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
#RUN apt-get update
#RUN apt-get -y install postgresql
RUN apt-get clean
CMD ["python", "-u", "/app/main.py"]