gmn2a / Dockerfile
longxing's picture
会话自愈:Cookie 初始化 + 后台持续轮换 __Secure-1PSIDTS
4ebb74e
Raw History Blame Contribute Delete
393 Bytes
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
WORKDIR /app
# Install dependencies
COPY pyproject.toml .
RUN uv sync
# Copy application code
COPY main.py .
COPY admin.py .
COPY admin.html .
COPY gemini_session.py .
# Expose the port the app runs on
ENV PORT=7860
EXPOSE ${PORT}
# Command to run the application
CMD ["sh", "-c", "uv run uvicorn main:app --host 0.0.0.0 --port ${PORT}"]