优化Docker本地部署

This commit is contained in:
Certificate System
2026-08-13 15:00:31 +08:00
parent c9667d56fb
commit 9a26fef6f4
7 changed files with 1127 additions and 12 deletions

View File

@@ -13,18 +13,14 @@ RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debia
fonts-noto-cjk \
fonts-unifont \
libfontconfig1 \
libnss3 \
libxss1 \
libasound2 \
libatk-bridge2.0-0 \
libgtk-3-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \
&& python -m playwright install chromium
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
COPY app ./app
COPY alembic ./alembic
COPY alembic.ini ./alembic.ini
EXPOSE 8000