Padded bunch of project data

This commit is contained in:
nocci 2025-04-21 11:56:29 +00:00
parent 65972f37cc
commit 0044017df8
18 changed files with 1162 additions and 0 deletions

View file

@ -0,0 +1,23 @@
FROM python:3.10-slim
# Shell explizit setzen
SHELL ["/bin/bash", "-c"]
# Datenbankordner erstellen und Berechtigungen setzen
RUN mkdir -p /app/data && chmod -R a+rwX /app/data
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID appuser && useradd -u $UID -g $GID -m appuser && chown -R appuser:appuser /app
USER appuser
EXPOSE 5000
CMD ["python", "app.py"]