The script now uses a new .env variable called PRELOAD which is used to specify whether the database should be preloaded with hashes. Currently this is configured to use a role from a specific server. This will be changed at a later date.
14 lines
214 B
Docker
14 lines
214 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"] |