Statement loader web app with Docker image and Gitea Actions build
build-container / build (push) Successful in 31s
build-container / build (push) Successful in 31s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
3dba054dca
12 files changed
+1081
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
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"]
|
||||
Reference in new issue
Block a user