优化Docker本地部署
This commit is contained in:
6
backend/.dockerignore
Normal file
6
backend/.dockerignore
Normal file
@@ -0,0 +1,6 @@
|
||||
__pycache__/
|
||||
.pytest_cache/
|
||||
*.pyc
|
||||
dev.db
|
||||
tests/
|
||||
docs/
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ pymysql==1.1.1
|
||||
python-multipart==0.0.20
|
||||
openpyxl==3.1.5
|
||||
qrcode[pil]==8.0
|
||||
playwright==1.49.1
|
||||
jinja2==3.1.5
|
||||
pytest==8.3.4
|
||||
alibabacloud-dysmsapi20170525==4.5.1
|
||||
|
||||
Reference in New Issue
Block a user