Update Dockerfile and settings for user permissions, add test URL patterns, and adjust volume paths

This commit is contained in:
Joakim Hellsén 2026-02-15 20:52:08 +01:00
commit b08143980c
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
5 changed files with 219 additions and 4 deletions

View file

@ -15,10 +15,16 @@ RUN chmod +x /app/start.sh
ENV PATH="/app/.venv/bin:$PATH"
RUN groupadd -g 1000 ttvdrops \
&& useradd -m -u 1000 -g 1000 -d /home/ttvdrops -s /bin/sh ttvdrops \
&& mkdir -p /home/ttvdrops/.local/share/TTVDrops \
&& chown -R ttvdrops:ttvdrops /home/ttvdrops /app
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
CMD curl -f http://localhost:8000/ || exit 1
VOLUME ["/root/.local/share/TTVDrops"]
VOLUME ["/home/ttvdrops/.local/share/TTVDrops"]
EXPOSE 8000
USER ttvdrops
ENTRYPOINT [ "/app/start.sh" ]
CMD ["uv", "run", "gunicorn", "config.wsgi:application", "--workers", "27", "--bind", "0.0.0.0:8000"]