refactor: harden ChatGPT token lifecycle with startup recovery, single-writer locking, and faster auth flow
This commit is contained in:
parent
71d1050adb
commit
533e382e0e
9 changed files with 313 additions and 178 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue