1
0
Fork 0

refactor: harden ChatGPT token lifecycle with startup recovery, single-writer locking, and faster auth flow

This commit is contained in:
Arthur K. 2026-03-01 20:58:24 +03:00
parent 71d1050adb
commit 533e382e0e
Signed by: wzray
GPG key ID: B97F30FDC4636357
9 changed files with 313 additions and 178 deletions

View file

@ -15,19 +15,19 @@ RUN pip install --no-cache-dir uv
RUN uv sync --frozen --no-dev
RUN /app/.venv/bin/python -m playwright install --with-deps chromium
COPY src/*.py /app/
COPY entrypoint.sh /entrypoint.sh
COPY src .
ENV PYTHONUNBUFFERED=1
ENV PORT=8000
ENV PORT=80
ENV DATA_DIR=/data
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
VOLUME ["/data"]
EXPOSE 8000
EXPOSE 80
STOPSIGNAL SIGINT
COPY entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]