backend: add db initializer logic

- Add some logging to DB Client

Create a db initializer #4
This commit is contained in:
tylen
2025-09-11 23:55:18 +03:00
parent 6d7ce9b8db
commit 7118bb2c5b
4 changed files with 66 additions and 15 deletions

View File

@@ -1,10 +1,19 @@
FROM python:3.13-slim-bookworm
# Set the PYTHONPATH environment variable
ENV PYTHONPATH=/usr/local/lib
COPY . /app
# Set the working directory
WORKDIR /app
RUN pip3 install -r requirements.txt
# Copy only the requirements file first
COPY requirements.txt requirements.txt
CMD ["/bin/sh", "entrypoint.sh"]
# Install dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Set the command to run your application
CMD ["/bin/sh", "entrypoint.sh"]