feat: 增加 docker compose 文件的镜像支持
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

This commit is contained in:
chuan
2025-11-11 15:29:11 +08:00
parent bba4bb40c8
commit 0a7194daf3
6 changed files with 32 additions and 2 deletions

View File

@@ -3,9 +3,12 @@ FROM python:3.12.5-alpine AS backend
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV INSTANCE_CHANGELOG_URL https://sites.plane.so/pages/691ef037bcfe416a902e48cb55f59891/
# Use Chinese mirrors for faster package installation
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN apk --no-cache add \
"bash~=5.2" \
"libpq" \
@@ -29,7 +32,7 @@ COPY requirements.txt ./requirements.txt
ADD requirements ./requirements
# Install the local development settings
RUN pip install -r requirements/local.txt --compile --no-cache-dir
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements/local.txt --compile --no-cache-dir
COPY . .