File tree Expand file tree Collapse file tree 6 files changed +576
-517
lines changed
src/plugins/bilibili/plugins/dynamic Expand file tree Collapse file tree 6 files changed +576
-517
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ ENVIRONMENT=dev
33DRIVER = ~fastapi+~httpx+~websockets
44
55SQLALCHEMY_SESSION_OPTIONS = ' {"expire_on_commit": false}'
6- ALEMBIC_VERSION_LOCATIONS = migrations/versions
76
87ALCONNA_USE_COMMAND_START = true
8+
9+ HTMLRENDER_CONNECT = ws://localhost:3000/chromium/playwright?launch={"args":["--disable-web-security"]}
Original file line number Diff line number Diff line change 1- FROM python:slim
1+ FROM python:slim as base
22WORKDIR /app
33ENV PATH=.venv/bin:${PATH}
44
5- RUN pip install pdm && pip cache purge
5+
6+ FROM base AS build
7+ ENV PDM_CHECK_UPDATE=false
8+
9+ RUN pip install pdm
610COPY pyproject.toml pdm.lock ./
7- RUN pdm sync -G docker --prod --no-editable && \
8- pdm cache clear && \
9- \
10- pip freeze | xargs pip uninstall -y && \
11- \
12- playwright install chromium --with-deps && \
13- apt clean && \
14- rm -rf /var/lib/apt/lists/*
11+ RUN pdm sync --prod --no-editable
12+
13+
14+ FROM base
15+
16+ COPY --from=build /app/.venv/ .venv
1517COPY . .
1618
1719CMD nb orm upgrade && nb run
You can’t perform that action at this time.
0 commit comments