From 8477f778ebad3d1bac6deeced8a8f27c02f43087 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 11 Oct 2025 17:57:10 +0200 Subject: [PATCH] Deployment configuration --- Dockerfile | 11 +++++++++++ database.sql | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 Dockerfile create mode 100644 database.sql diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a54e052 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.12-slim + +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +WORKDIR /app + +COPY src/ /app/ + +ENTRYPOINT ["python","main.py"] diff --git a/database.sql b/database.sql new file mode 100644 index 0000000..d430c63 --- /dev/null +++ b/database.sql @@ -0,0 +1,5 @@ +CREATE TABLE stories (id INT AUTO_INCREMENT PRIMARY KEY, + royalroadId INT NOT NULL, + lastChapter INT DEFAULT 0, + active BOOLEAN NOT NULL DEFAULT TRUE + ); \ No newline at end of file