File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ FROM python:3.7-alpine
33COPY requirements.txt /app/requirements.txt
44COPY dev_requirements.txt /app/dev_requirements.txt
55
6- RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
7- && apk update \
6+ RUN apk update \
87 && apk add postgresql==12.3-r2
98
109ENV PGDATA /var/lib/postgresql/12
@@ -16,8 +15,8 @@ RUN mkdir -p /run/postgresql $PGDATA \
1615 libffi-dev \
1716 musl-dev \
1817 openldap-dev \
19- && pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt -i https://mirrors.aliyun.com/pypi/simple \
20- && pip3 install --disable-pip-version-check --no-cache-dir -r /app/dev_requirements.txt -i https://mirrors.aliyun.com/pypi/simple \
18+ && pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
19+ && pip3 install --disable-pip-version-check --no-cache-dir -r /app/dev_requirements.txt \
2120 && runDeps="$( \
2221 scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
2322 | tr ',' '\n' \
You can’t perform that action at this time.
0 commit comments