-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
32 lines (24 loc) · 1 KB
/
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
FROM python:3.9.7-slim
COPY ./app /app
COPY ./app /app_temp
RUN apt-get update && \
apt-get install -y locales && \
sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /data
ENV LANG fr_FR.UTF-8
ENV LC_ALL fr_FR.UTF-8
ENV TZ=Europe/Paris
# Prerequisite for installing package lxml on armv7
#RUN apt-get install --upgrade -y g++ gcc libxml2-dev libxslt-dev python3-dev
# Install python requirements
RUN pip3 install --upgrade pip && \
pip3 install --no-cache-dir -r /app/requirement.txt
#Fixes on pronotepy awaiting their integration in the main-app
#COPY ./app/__init__.py /usr/local/lib/python3.9/site-packages/pronotepy/__init__.py
#COPY ./app/dataClasses.py /usr/local/lib/python3.9/site-packages/pronotepy/dataClasses.py
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
CMD ["python3", "/app/pronote2mqtt.py"]