forked from PhongT16/outlook_calendar_report_generator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (20 loc) · 904 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
FROM python:3
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# RUN apt-get update -y \
# && apt-get install ssmtp -y \
# && echo mailhub=smtp-server >> /etc/ssmtp/ssmtp.conf \
# && echo FromLineOverride=YES >> /etc/ssmtp/ssmtp.conf \
# && apt-get clean
RUN mkdir /home/vacation_calendar_sync
COPY . /vacation_calendar_sync
WORKDIR /vacation_calendar_sync
RUN python -m pip install -r /vacation_calendar_sync/requirements.txt
# RUN ln -s /home/microsoft_graph_auth.yaml /root/microsoft_graph_auth.yaml
RUN ln -s /home/vacation_calendar_sync_config.yaml /root/vacation_calendar_sync_config.yaml
ENV VCS_CONFIG="/root/vacation_calendar_sync_config.yaml"
#ENV VCS_COLLECTION_PATH="/root/vacation_calendar_sync/"
#RUN mkdir /duo_auth/app
#CMD ["bash"]
#CMD [ "python3 OutlookCalendar.py -s" ]
ENTRYPOINT [ "./entrypoint.sh" ]