use sqlalchemy session only as short as possible

This commit is contained in:
Thomas Peetz
2025-01-16 23:03:30 +01:00
parent 33dcbc4413
commit 58263cb854
8 changed files with 115 additions and 65 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
FROM python:3.9-alpine
#FROM python:3.9-alpine
FROM python:3.11-bookworm
LABEL MAINTAINER="Thomas Peetz <thomas.peetz@thpeetz.de>"
ENV PS1="\[\e[0;33m\]|> kontor <| \[\e[1;35m\]\W\[\e[0m\] \[\e[0m\]# "
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y apt-utils libmariadb3 libmariadb-dev
RUN rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . /src