Implement logging and adjusted database location

Changes include creating the directory and database before the script.
This commit is contained in:
雲華
2021-08-17 19:36:26 -04:00
parent 12bd0027f9
commit aaea16ab99
3 changed files with 8 additions and 3 deletions

View File

@@ -7,4 +7,7 @@ WORKDIR /lanews
RUN python3 -m venv venv && \
venv/bin/pip install -r requirements.txt
RUN mkdir database && \
touch database/news.db
CMD ["venv/bin/python", "main.py"]