simple Python app that conencts to db

This commit is contained in:
luptmoor
2026-02-25 18:19:22 +01:00
parent 8473d3d12c
commit 0e242801e7
4 changed files with 68 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.11-slim
RUN apt-get update && apt-get install -y libpq-dev gcc \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY app/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ .
CMD ["python", "main.py"]