From b8b2840f347af274b96436e016a8869c5777a913 Mon Sep 17 00:00:00 2001 From: Diaco Soltanpour Date: Fri, 9 Oct 2026 18:19:50 +0330 Subject: [PATCH] Rename the UI to Label Printer and cache pip across Docker rebuilds. Co-authored-by: Cursor --- Dockerfile | 5 +++-- README.md | 2 +- slips/api.py | 2 +- slips/static/slips/js/i18n.js | 4 ++-- slips/templates/slips/base.html | 4 ++-- slips/templates/slips/calibrate.html | 2 +- slips/templates/slips/entry.html | 2 +- slips/templates/slips/print.html | 2 +- slips/templates/slips/products.html | 2 +- 9 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 02445f3..2ad2133 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,9 +25,10 @@ ENV PIP_TRUSTED_HOST=${PIP_TRUSTED_HOST} WORKDIR /app -# Install dependencies +# Install dependencies (BuildKit pip cache survives rebuilds) COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +RUN --mount=type=cache,target=/root/.cache/pip \ + pip install -r requirements.txt # Copy project COPY . . diff --git a/README.md b/README.md index 5a7c1c8..8f1084a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Lithium | Print Label +# Lithium Labels A self-hosted web application for tracking production orders and generating pixel-perfect labels for canisters and boxes. diff --git a/slips/api.py b/slips/api.py index 9ea496e..c092575 100644 --- a/slips/api.py +++ b/slips/api.py @@ -11,7 +11,7 @@ from .schemas import ( ) from .calibration import load_calibration, save_calibration, DEFAULTS, for_api -api = NinjaAPI(title='Lithium Label API', version='1.0.0', urls_namespace='slips_api') +api = NinjaAPI(title='Lithium Labels', version='1.0.0', urls_namespace='slips_api') # ─── Products ──────────────────────────────────────────── diff --git a/slips/static/slips/js/i18n.js b/slips/static/slips/js/i18n.js index cc7ffc6..9584cf3 100644 --- a/slips/static/slips/js/i18n.js +++ b/slips/static/slips/js/i18n.js @@ -1,6 +1,6 @@ const translations = { 'en': { - 'app_title': 'Lithium | Print Label', + 'app_title': 'Label Printer', 'data_entry': 'Data Entry', 'products': 'Products', 'print_queue': 'Print Queue', @@ -49,7 +49,7 @@ const translations = { 'no_history': 'No print history' }, 'fa': { - 'app_title': 'لیتیوم |‌ پرینت لیبل', + 'app_title': 'پرینتر لیبل', 'data_entry': 'ثبت اطلاعات', 'products': 'محصولات', 'print_queue': 'صف چاپ', diff --git a/slips/templates/slips/base.html b/slips/templates/slips/base.html index 9d64ec4..7f4bc1d 100644 --- a/slips/templates/slips/base.html +++ b/slips/templates/slips/base.html @@ -4,7 +4,7 @@ - {% block title %}لیتیوم |‌ پرینت لیبل{% endblock %} + {% block title %}پرینتر لیبل{% endblock %} @@ -27,7 +27,7 @@