Files
money/Dockerfile
T
nmemmertandClaude Sonnet 5.5 4d076b2b73
build-container / build (push) Successful in 1m22s
Statement loader web app with Docker image and Gitea Actions build
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 12:41:35 -04:00

19 lines
595 B
Docker

FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 DATA_DIR=/data BIND=0.0.0.0 PORT=8765
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY statement_loader.py app.py app_page.html app_dashboard.html ./
# statements, Bills_Tracker.xlsx and backups live in this volume, never in the image
RUN useradd -m -u 1000 app && mkdir /data && chown app /data
USER app
VOLUME /data
EXPOSE 8765
HEALTHCHECK --interval=30s --timeout=5s CMD python -c "import urllib.request;urllib.request.urlopen('http://127.0.0.1:8765/dashboard')" || exit 1
CMD ["python", "app.py"]