Add MariaDB HTTP readiness service

This commit is contained in:
Repinoid
2026-10-02 11:48:13 +03:00
commit 01ad74acd6
7 changed files with 155 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PORT=8080
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt \
&& useradd --system --uid 10001 --create-home app
COPY --chown=10001:10001 server.py .
USER 10001:10001
EXPOSE 8080
CMD ["python", "server.py"]