docker: fix data persistence with TINYWEB_DATA_DIR env var

This commit is contained in:
blankie 2026-06-14 07:48:34 +00:00
parent 27147bd3f9
commit 1461c62c91
4 changed files with 4 additions and 5 deletions

View file

@ -13,9 +13,7 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /data \
&& ln -sf /data/index.db index.db \
&& ln -sf /data/tinyweb_identity tinyweb_identity
RUN mkdir -p /data
ENV PYTHONUNBUFFERED=1