Files
MIND/Dockerfile
CasVT 8c5e34caee Implemented WAL journal mode for database
Some of the waitress code has been overwritten to make this work (at `backend.db.ThreadedTaskDispatcher`). The `handler_thread` function has been changed so that when the thread shuts down, the database connection for the thread is also closed (this _has_ to happen _in the thread that the connection is for/from_). The `shutdown` function opens and closes a database connection at the end, which triggers the checkpoint of the journal, writing everything to the db file and removing the `-wal` and `-shm` temporary db files.
2023-06-30 22:11:18 +02:00

14 lines
212 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
STOPSIGNAL SIGINT
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
CMD [ "python3", "/app/MIND.py" ]