Files
lostark-news-webscraper/Dockerfile
雲華 aaea16ab99 Implement logging and adjusted database location
Changes include creating the directory and database before the script.
2021-08-17 19:36:26 -04:00

13 lines
213 B
Docker

FROM python:slim
COPY . /lanews
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"]