Skip to content

Commit

Permalink
issue 22: Create config and log dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongT16 committed Dec 3, 2024
1 parent 9b32749 commit 349d54d
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,15 @@ 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
RUN mkdir /home/vacation_calendar_sync/
RUN mkdir /etc/vcs/
RUN mkdir /var/log/vcs/

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" ]

ENV VCS_CONFIG="/etc/vcs/config.yaml"
ENV VCS_LOG="/var/log/vcs/"

ENTRYPOINT [ "./entrypoint.sh" ]

0 comments on commit 349d54d

Please sign in to comment.