Add plug-in-only filter to web app + deploy script
- Checkbox 'plug-in only (≤ 0.8 kW, no electrician)' filters the leaderboard client-side and re-picks the top recommendation from visible rows. Filter state is persisted in localStorage. - scripts/deploy.sh: idempotent rsync + systemd setup against the 'thuisbatterij' SSH alias. Run after provisioning the h4a workload.
This commit is contained in:
parent
60e0706736
commit
1d7574e0b2
5 changed files with 158 additions and 6 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||
PIP_NO_CACHE_DIR=1 \
|
||||
PORT=8080
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml uv.lock README.md ./
|
||||
COPY src ./src
|
||||
|
||||
RUN pip install --no-cache-dir uv \
|
||||
&& uv pip install --system --no-cache .
|
||||
|
||||
COPY data ./data
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["sh", "-c", "gunicorn pluginbattery.web:app --bind 0.0.0.0:${PORT:-8080} --workers 1 --timeout 120"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue